diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 38fd8da0e45eea59dc99aa83dfb6356355ae1719..c0f78ea2666f1b7cae315125a9fc8692f03cc5c8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -12,7 +12,7 @@ import { CreatorRoomComponent } from './components/pages/creator-room/creator-ro import { CommentListComponent } from './components/fragments/comment-list/comment-list.component'; import { ContentListComponent } from './components/fragments/content-list/content-list.component'; import { ContentDetailComponent } from './components/pages/content-detail/content-detail.component'; -import { AnswerStatisticsComponent } from './components/fragments/answer-statistics/answer-statistics.component'; +import { AnswerStatisticsComponent } from './components/fragments/statistics/statistics.component'; import { AddContentComponent } from './components/pages/add-content/add-content.component'; import { ParticipantContentCarouselPageComponent @@ -47,7 +47,7 @@ const routes: Routes = [ data: { roles: [UserRole.CREATOR] } }, { - path: 'creator/room/:roomId/answer-statistics', + path: 'creator/room/:roomId/statistics', component: AnswerStatisticsComponent, canActivate: [AuthenticationGuard], data: { roles: [UserRole.CREATOR] } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index bba729bc9cd491ead746a47d76082a0945dc2615..90120bb56ca864dc4e38d1a8e11a490a64edd058 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -69,7 +69,7 @@ import { ContentService } from './services/http/content.service'; import { ContentAnswersListComponent } from './components/fragments/content-answers-list/content-answers-list.component'; import { ContentAnswerService } from './services/http/content-answer.service'; import { RoomDeletionComponent } from './components/dialogs/room-delete/room-delete.component'; -import { AnswerStatisticsComponent } from './components/fragments/answer-statistics/answer-statistics.component'; +import { AnswerStatisticsComponent } from './components/fragments/statistics/statistics.component'; import { RoomModificationComponent } from './components/dialogs/room-edit/room-edit.component'; import { ParticipantChoiceContentComponent } from './components/fragments/participant-choice-content/participant-choice-content.component'; import { CreatorChoiceContentComponent } from './components/fragments/creator-choice-content/creator-choice-content.component'; diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.html b/src/app/components/fragments/statistics/statistics.component.html similarity index 100% rename from src/app/components/fragments/answer-statistics/answer-statistics.component.html rename to src/app/components/fragments/statistics/statistics.component.html diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.scss b/src/app/components/fragments/statistics/statistics.component.scss similarity index 100% rename from src/app/components/fragments/answer-statistics/answer-statistics.component.scss rename to src/app/components/fragments/statistics/statistics.component.scss diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts b/src/app/components/fragments/statistics/statistics.component.spec.ts similarity index 89% rename from src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts rename to src/app/components/fragments/statistics/statistics.component.spec.ts index 44567afe6d8b30c5e65f91ba1877ba2b7f8da9bd..7915c39316404743c7060412c30b8e99d7a971a7 100644 --- a/src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts +++ b/src/app/components/fragments/statistics/statistics.component.spec.ts @@ -1,6 +1,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { AnswerStatisticsComponent } from './answer-statistics.component'; +import { AnswerStatisticsComponent } from './statistics.component'; describe('AnswerStatisticsComponent', () => { let component: AnswerStatisticsComponent; diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.ts b/src/app/components/fragments/statistics/statistics.component.ts similarity index 97% rename from src/app/components/fragments/answer-statistics/answer-statistics.component.ts rename to src/app/components/fragments/statistics/statistics.component.ts index b3da346841975fde0e8082baf1815b10e8e2db07..bef7f2fa706f8e26ba31ed9e402e49efba4c6919 100644 --- a/src/app/components/fragments/answer-statistics/answer-statistics.component.ts +++ b/src/app/components/fragments/statistics/statistics.component.ts @@ -10,8 +10,8 @@ import { ContentType } from '../../../models/content-type'; @Component({ selector: 'app-answer-statistics', - templateUrl: './answer-statistics.component.html', - styleUrls: ['./answer-statistics.component.scss'] + templateUrl: './statistics.component.html', + styleUrls: ['./statistics.component.scss'] }) export class AnswerStatisticsComponent implements OnInit { @Input() content: Content[];