diff --git a/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts b/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts index 8aaf4024353f373afdece7d05d657a1bead68a57..b3906468f7c478a9717d50c86c1c17be407d3929 100644 --- a/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts +++ b/src/app/components/creator/comment-creator-page/comment-creator-page.component.ts @@ -23,7 +23,7 @@ export class CommentCreatorPageComponent implements OnInit { } showExportDialog(): void { - this.commentService.setState(false); + this.commentService.exportButtonClicked(false); if (this.dialog.openDialogs.length === 0) { this.dialog.open(CommentExportComponent, { width: '400px', height: '300px' diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index 63d33d120246ee80ebf8d70d30e0eeff48e60ad0..882578590f14c62a223c166acf30eb90d1ee7cd9 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -123,6 +123,6 @@ export class CommentListComponent implements OnInit { } export(clicked: boolean): void { - this.commentService.setState(clicked); + this.commentService.exportButtonClicked(clicked); } } diff --git a/src/app/services/http/comment.service.ts b/src/app/services/http/comment.service.ts index 5eb96ea47341d008ffc2edcef170aa5e290772af..bf2ca6367c2743972329c01dc1a33605b05a8529 100644 --- a/src/app/services/http/comment.service.ts +++ b/src/app/services/http/comment.service.ts @@ -70,7 +70,7 @@ export class CommentService extends BaseHttpService { ); } - setState(state: boolean) { + exportButtonClicked(state: boolean) { this.exportButton.next(state); } }