From 5b920593518819eed02fb93702d4abebddd584d0 Mon Sep 17 00:00:00 2001 From: Shane Harris Date: Thu, 4 Aug 2022 12:19:12 +0200 Subject: [PATCH] added status messages --- desktop-app/src/app/header/header.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop-app/src/app/header/header.component.ts b/desktop-app/src/app/header/header.component.ts index e761e26..1fc0b91 100644 --- a/desktop-app/src/app/header/header.component.ts +++ b/desktop-app/src/app/header/header.component.ts @@ -238,7 +238,12 @@ export class HeaderComponent implements OnInit { if (this.saveLogcatPath) { if (this.appService.fs.existsSync(this.saveLogcatPath)) { this.appService.fs.writeFile(this.appService.path.join(this.saveLogcatPath, 'logcat.log'), '', () => {}); + this.statusService.showStatus('Cleared log file'); + } else { + this.statusService.showStatus('Log file does not exist', true); } + } else { + this.statusService.showStatus('NO log file selected', true); } } attemptToSaveLogcat(logcat) {