From fbde56e89232c7aff2d4861f6be4df4f6d0b6147 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 16 May 2022 23:40:14 +0200 Subject: [PATCH 1/3] fix: switch back to files, after clear printjob from status panel Signed-off-by: Stefan Dej --- src/components/panels/StatusPanel.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index c3783792d..fc31da5df 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -241,10 +241,20 @@ export default class StatusPanel extends Mixins(BaseMixin) { @Watch('current_filename') current_filenameChanged(newVal: string) { - if (this.current_filename === '' && newVal !== '') this.activeTab = 'status' + if (this.current_filename === '' && newVal !== '') { + this.activeTab = 'status' + return + } + if (this.boolFirstLoad && newVal !== '') { this.boolFirstLoad = false this.activeTab = 'status' + return + } + + if (newVal === '') { + this.activeTab = 'files' + return } } From a0e161d7d0fe2e9c11e536990694ae8e036448e4 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Thu, 19 May 2022 23:07:37 +0200 Subject: [PATCH 2/3] fix: hide jobqueue play button, when the printer is printing Signed-off-by: Stefan Dej --- src/components/panels/Status/Jobqueue.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/Status/Jobqueue.vue b/src/components/panels/Status/Jobqueue.vue index 814f52874..c9b875258 100644 --- a/src/components/panels/Status/Jobqueue.vue +++ b/src/components/panels/Status/Jobqueue.vue @@ -57,7 +57,7 @@ -