From 97436149fc84af2e4ae444020d9b5a6b04c0a1a9 Mon Sep 17 00:00:00 2001 From: Thisari Muthuwahandi <thisari.muthuwahandi@mni.thm.de> Date: Sat, 13 Apr 2019 10:21:19 +0200 Subject: [PATCH] Rename 'setState()' to 'exportButtonClicked()' --- .../comment-creator-page/comment-creator-page.component.ts | 2 +- .../components/shared/comment-list/comment-list.component.ts | 2 +- src/app/services/http/comment.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 8aaf40243..b3906468f 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 63d33d120..882578590 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 5eb96ea47..bf2ca6367 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); } } -- GitLab