From efba1a4ce8d5d91cf9ccbb8741dfaa926f2ed5da Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 12 Mar 2023 18:46:39 +0100 Subject: [PATCH 1/2] 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}`; } From b7e72888f70d0a02df6a1a9fe1bf9165f95cd0f6 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 14 Mar 2023 17:00:34 +0100 Subject: [PATCH 2/2] Fixed translation #246 --- kdb-web/src/assets/i18n/de.json | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/kdb-web/src/assets/i18n/de.json b/kdb-web/src/assets/i18n/de.json index 21901eaa..79234f3d 100644 --- a/kdb-web/src/assets/i18n/de.json +++ b/kdb-web/src/assets/i18n/de.json @@ -154,18 +154,7 @@ "modified_at": "Bearbeitet am", "no_entries_found": "Keine Einträge gefunden", "of": "von", - "reset_filters": "Filter zurücksetzen", - "history": { - "header": "Historie", - "id": "Id", - "discordId": "Discord Id", - "deleted": "Gelöscht", - "dateFrom": "Von", - "dateTo": "Bis", - "server": "Server", - "leftServer": "Gegangen", - "xp": "XP" - } + "reset_filters": "Filter zurücksetzen" }, "dialog": { "abort": "Abbrechen",