From 0e764416843c3788862b2b9f267bf8d370f42438 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 6 Feb 2021 18:51:31 +0100 Subject: [PATCH] fix log viewer for empty logs --- src-ui/src/app/components/manage/logs/logs.component.html | 2 +- src-ui/src/app/components/manage/logs/logs.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/manage/logs/logs.component.html b/src-ui/src/app/components/manage/logs/logs.component.html index 8a2a28ef8..56ffd25bb 100644 --- a/src-ui/src/app/components/manage/logs/logs.component.html +++ b/src-ui/src/app/components/manage/logs/logs.component.html @@ -11,7 +11,7 @@
-
+

{{log}}

diff --git a/src-ui/src/app/components/manage/logs/logs.component.ts b/src-ui/src/app/components/manage/logs/logs.component.ts index 0754e4253..d77fcde4a 100644 --- a/src-ui/src/app/components/manage/logs/logs.component.ts +++ b/src-ui/src/app/components/manage/logs/logs.component.ts @@ -10,8 +10,6 @@ export class LogsComponent implements OnInit { constructor(private logService: LogService) { } - @ViewChild('logContainer') private logContainer: ElementRef - logs: string[] = [] logFiles: string[] = [] @@ -31,6 +29,8 @@ export class LogsComponent implements OnInit { reloadLogs() { this.logService.get(this.activeLog).subscribe(result => { this.logs = result + }, error => { + this.logs = [] }) }