Skip to content
Snippets Groups Projects
Commit 97436149 authored by Thisari Muthuwahandi's avatar Thisari Muthuwahandi
Browse files

Rename 'setState()' to 'exportButtonClicked()'

parent 03e4362f
Branches
Tags
No related merge requests found
...@@ -23,7 +23,7 @@ export class CommentCreatorPageComponent implements OnInit { ...@@ -23,7 +23,7 @@ export class CommentCreatorPageComponent implements OnInit {
} }
showExportDialog(): void { showExportDialog(): void {
this.commentService.setState(false); this.commentService.exportButtonClicked(false);
if (this.dialog.openDialogs.length === 0) { if (this.dialog.openDialogs.length === 0) {
this.dialog.open(CommentExportComponent, { this.dialog.open(CommentExportComponent, {
width: '400px', height: '300px' width: '400px', height: '300px'
......
...@@ -123,6 +123,6 @@ export class CommentListComponent implements OnInit { ...@@ -123,6 +123,6 @@ export class CommentListComponent implements OnInit {
} }
export(clicked: boolean): void { export(clicked: boolean): void {
this.commentService.setState(clicked); this.commentService.exportButtonClicked(clicked);
} }
} }
...@@ -70,7 +70,7 @@ export class CommentService extends BaseHttpService { ...@@ -70,7 +70,7 @@ export class CommentService extends BaseHttpService {
); );
} }
setState(state: boolean) { exportButtonClicked(state: boolean) {
this.exportButton.next(state); this.exportButton.next(state);
} }
} }
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