diff --git a/src/app/components/creator/answers-list/answers-list.component.html b/src/app/components/creator/answers-list/answers-list.component.html deleted file mode 100644 index d1205e828c48078f9500b29a95674ca9d06dd6e0..0000000000000000000000000000000000000000 --- a/src/app/components/creator/answers-list/answers-list.component.html +++ /dev/null @@ -1,8 +0,0 @@ -<mat-list> - <h3 mat-subheader>Answers</h3> - <mat-list-item *ngFor="let textAnswer of textAnswers"> - <button mat-button routerLink="{{textAnswer.id}}"> - {{textAnswer.body}} - </button> - </mat-list-item> -</mat-list> \ No newline at end of file diff --git a/src/app/components/creator/answers-list/answers-list.component.scss b/src/app/components/creator/answers-list/answers-list.component.scss deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/app/components/creator/answers-list/answers-list.component.spec.ts b/src/app/components/creator/answers-list/answers-list.component.spec.ts deleted file mode 100644 index 6ce3bb35ab546095cbe7530453ee3feaed389dbc..0000000000000000000000000000000000000000 --- a/src/app/components/creator/answers-list/answers-list.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AnswersListComponent } from './answers-list.component'; - -describe('AnswersListComponent', () => { - let component: AnswersListComponent; - let fixture: ComponentFixture<AnswersListComponent>; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ AnswersListComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(AnswersListComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/components/creator/answers-list/answers-list.component.ts b/src/app/components/creator/answers-list/answers-list.component.ts deleted file mode 100644 index b7cb7656ab21fd04d031878194d9f21742f5e819..0000000000000000000000000000000000000000 --- a/src/app/components/creator/answers-list/answers-list.component.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import { ContentAnswerService } from '../../../services/http/content-answer.service'; -import { AnswerText } from '../../../models/answer-text'; -import { ActivatedRoute } from '@angular/router'; -import { ContentService } from '../../../services/http/content.service'; - -@Component({ - selector: 'app-answers-list', - templateUrl: './answers-list.component.html', - styleUrls: ['./answers-list.component.scss'] -}) -export class AnswersListComponent implements OnInit { - textAnswers: AnswerText[]; - - constructor( - private contentService: ContentService, - private contentAnswerService: ContentAnswerService, - private route: ActivatedRoute) { - } - - ngOnInit() { - this.route.params.subscribe(params => { - this.getAnswerTexts(params['contentId']); - }); - } - - getAnswerTexts(contentId: string): void { - this.contentAnswerService.getAnswers(contentId) - .subscribe(textAnswers => { - this.textAnswers = textAnswers; - }); - } -} diff --git a/src/app/components/creator/creator.module.ts b/src/app/components/creator/creator.module.ts index 2f569087be22a2fb7d6f367a34aeed9a68ed6b0f..e28e1994da33634b7baf862799dddfdb80f4d94d 100644 --- a/src/app/components/creator/creator.module.ts +++ b/src/app/components/creator/creator.module.ts @@ -1,7 +1,6 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CreatorRoutingModule } from './creator-routing.module'; -import { AnswersListComponent } from './answers-list/answers-list.component'; import { ContentChoiceCreatorComponent } from './content-choice-creator/content-choice-creator.component'; import { ContentCreatePageComponent } from './content-create-page/content-create-page.component'; import { ContentLikertCreatorComponent } from './content-likert-creator/content-likert-creator.component'; @@ -40,7 +39,6 @@ import { ContentEditComponent } from './_dialogs/content-edit/content-edit.compo }) ], declarations: [ - AnswersListComponent, ContentChoiceCreatorComponent, ContentCreatePageComponent, ContentLikertCreatorComponent,