From 20580ec663804afdfdfa6a9b2cc2dd5c4a9d897c Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 5 May 2024 22:31:50 +0200 Subject: [PATCH] fix: display "pause on layer"-button only when the macros exists Signed-off-by: Stefan Dej --- src/components/panels/StatusPanel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index ec8612bec..ba405f501 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -263,7 +263,7 @@ export default class StatusPanel extends Mixins(BaseMixin) { icon: mdiLayersPlus, loadingName: 'pauseAtLayer', status: () => { - if (this.multiFunctionButton || this.layer_count === null) return false + if (this.multiFunctionButton || !this.displayPauseAtLayerButton) return false return ['paused', 'printing'].includes(this.printer_state) }, @@ -319,7 +319,7 @@ export default class StatusPanel extends Mixins(BaseMixin) { click: this.btnExcludeObject, }, { - text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer') + ' - ' + this.displayPauseAtLayerButton, + text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer'), loadingName: 'pauseAtLayer', icon: mdiLayersPlus, status: () => this.displayPauseAtLayerButton,