From 699377be54572685226aa6d03c95d7849d00df7a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 12 Mar 2023 18:46:39 +0100 Subject: [PATCH] Added type hints #246 --- .../components/history-btn/history-btn.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kdb-web/src/app/modules/shared/components/history-btn/history-btn.component.ts b/kdb-web/src/app/modules/shared/components/history-btn/history-btn.component.ts index 60fd98bf..db89ea41 100644 --- a/kdb-web/src/app/modules/shared/components/history-btn/history-btn.component.ts +++ b/kdb-web/src/app/modules/shared/components/history-btn/history-btn.component.ts @@ -11,15 +11,15 @@ export class HistoryBtnComponent implements OnInit { @Input() history: History[] = []; @Input() translationKey: string = ""; - showSidebar = false; + public showSidebar: boolean = false; - constructor() { + public constructor() { } - ngOnInit(): void { + public ngOnInit(): void { } - openHistory(): void { + public openHistory(): void { this.showSidebar = true; let oldHistory: Partial = {}; for (const history of this.history) { @@ -36,7 +36,7 @@ export class HistoryBtnComponent implements OnInit { } } - getAttributeTranslationKey(key: string) { + public getAttributeTranslationKey(key: string): string { return `common.history.${key}`; }