diff --git a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts index f947184522883edc832fb1b74fd3245777b1b67c..3cc2197f13d609c964cb93eb2624b1a36cc1ac81 100644 --- a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts +++ b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts @@ -45,11 +45,11 @@ export class CommentExportComponent implements OnInit { return this.currentButton = change.value; } - onNoClick() { + onNoClick(): void { this.dialogRef.close(); } - exportJson(date: string) { + exportJson(date: string): void { const jsonComments = JSON.parse(JSON.stringify(this.comments)); jsonComments.forEach(element => { delete element.id; @@ -65,7 +65,7 @@ export class CommentExportComponent implements OnInit { link.click(); } - exportCsv(delimiter: string, date: string) { + exportCsv(delimiter: string, date: string): void { let csv: string; let keyFields = ''; let valueFields = ''; @@ -83,7 +83,7 @@ export class CommentExportComponent implements OnInit { link.click(); } - onExport() { + onExport(): void { const date = new Date(); const dateString = date.getFullYear() + '_' + ('0' + (date.getMonth() + 1)).slice(-2) + '_' + ('0' + date.getDate()).slice(-2); const timeString = ('0' + date.getHours()).slice(-2) + ('0' + date.getMinutes()).slice(-2) + ('0' + date.getSeconds()).slice(-2); diff --git a/src/app/services/http/comment.service.ts b/src/app/services/http/comment.service.ts index bf2ca6367c2743972329c01dc1a33605b05a8529..5eafa91d041fd8fde700abb89288139c47eaf292 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 { ); } - exportButtonClicked(state: boolean) { + exportButtonClicked(state: boolean): void { this.exportButton.next(state); } }