Skip to content
Snippets Groups Projects
Commit 2ef76cac authored by David Noah Donges's avatar David Noah Donges Committed by Hagen Dreßler
Browse files

Rename comment list component

parent f3d1fc95
No related merge requests found
...@@ -10,6 +10,7 @@ import { AuthenticationGuard } from './authentication.guard'; ...@@ -10,6 +10,7 @@ import { AuthenticationGuard } from './authentication.guard';
import { UserRole } from './user-roles.enum'; import { UserRole } from './user-roles.enum';
import { ParticipantRoomComponent } from './participant-room/participant-room.component'; import { ParticipantRoomComponent } from './participant-room/participant-room.component';
import { CommentComponent } from './comment/comment.component'; import { CommentComponent } from './comment/comment.component';
import { CommentListComponent } from './comment-list/comment-list.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full' }, { path: '', redirectTo: '/home', pathMatch: 'full' },
...@@ -33,7 +34,7 @@ const routes: Routes = [ ...@@ -33,7 +34,7 @@ const routes: Routes = [
}, },
{ {
path: 'room/:roomId/comments', path: 'room/:roomId/comments',
component: CommentComponent, component: CommentListComponent,
canActivate: [AuthenticationGuard], canActivate: [AuthenticationGuard],
data: { roles: [UserRole.CREATOR] } data: { roles: [UserRole.CREATOR] }
}, },
......
...@@ -8,7 +8,7 @@ import { JoinRoomComponent } from './join-room/join-room.component'; ...@@ -8,7 +8,7 @@ import { JoinRoomComponent } from './join-room/join-room.component';
import { LoginComponent } from './login/login.component'; import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component'; import { RegisterComponent } from './register/register.component';
import { PasswordResetComponent } from './password-reset/password-reset.component'; import { PasswordResetComponent } from './password-reset/password-reset.component';
import { CommentComponent } from './comment/comment.component'; import { CommentListComponent } from './comment-list/comment-list.component';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { FormsModule, ReactiveFormsModule } from '@angular/forms';
...@@ -85,7 +85,7 @@ import { DataStoreService } from './data-store.service'; ...@@ -85,7 +85,7 @@ import { DataStoreService } from './data-store.service';
CreatorHomeScreenComponent, CreatorHomeScreenComponent,
CreateCommentComponent, CreateCommentComponent,
ParticipantHomeScreenComponent, ParticipantHomeScreenComponent,
CommentComponent, CommentListComponent,
ContentAnswersComponent, ContentAnswersComponent,
ParticipantRoomComponent ParticipantRoomComponent
], ],
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CommentComponent } from './comment.component'; import { CommentListComponent } from './comment-list.component';
describe('CommentComponent', () => { describe('CommentListComponent', () => {
let component: CommentComponent; let component: CommentListComponent;
let fixture: ComponentFixture<CommentComponent>; let fixture: ComponentFixture<CommentListComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ CommentComponent ] declarations: [ CommentListComponent ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(CommentComponent); fixture = TestBed.createComponent(CommentListComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
......
...@@ -7,11 +7,11 @@ import { RoomService } from '../room.service'; ...@@ -7,11 +7,11 @@ import { RoomService } from '../room.service';
import { NotificationService } from '../notification.service'; import { NotificationService } from '../notification.service';
@Component({ @Component({
selector: 'app-comment', selector: 'app-comment-list',
templateUrl: './comment.component.html', templateUrl: './comment-list.component.html',
styleUrls: ['./comment.component.scss'] styleUrls: ['./comment-list.component.scss']
}) })
export class CommentComponent implements OnInit { export class CommentListComponent implements OnInit {
comments: Comment[]; comments: Comment[];
constructor( constructor(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment