diff --git a/src/app/control/control.component.ts b/src/app/control/control.component.ts index cd32b18b1..693083274 100644 --- a/src/app/control/control.component.ts +++ b/src/app/control/control.component.ts @@ -39,7 +39,6 @@ export class ControlComponent { } public doAction(command: string, exit: boolean, confirm: boolean): void { - console.log(command, exit, confirm); if (confirm) { this.actionToConfirm = { command, @@ -57,6 +56,8 @@ export class ControlComponent { this.executeGCode(this.actionToConfirm.command); if (this.actionToConfirm.exit) { this.router.navigate(['/main-screen']); + } else { + this.actionToConfirm = null; } } diff --git a/src/app/files/files.component.ts b/src/app/files/files.component.ts index ce7ea5fd2..c9f6ba4bc 100644 --- a/src/app/files/files.component.ts +++ b/src/app/files/files.component.ts @@ -64,8 +64,7 @@ export class FilesComponent { this.sortFolder(this.sortingAttribute, this.sortingOrder); this.spinner.hide(); }) - .catch((err): void => { - console.error(err); + .catch((): void => { this.folderContent = null; this.currentFolder = folderPath; this.spinner.hide(); diff --git a/src/app/notification/notification.service.ts b/src/app/notification/notification.service.ts index f6a8134d8..534faa3e9 100644 --- a/src/app/notification/notification.service.ts +++ b/src/app/notification/notification.service.ts @@ -17,12 +17,12 @@ export class NotificationService { } public enableNotifications(): void { - // console.clear(); + console.clear(); this.hideNotifications = false; } public disableNotifications(): void { - // console.clear(); + console.clear(); this.hideNotifications = true; }