From 8326ee05cdaef0ee001c4611b0bef6a2f6881fe6 Mon Sep 17 00:00:00 2001 From: fatalbullethit Date: Sun, 18 Aug 2024 13:40:49 +0200 Subject: [PATCH] fixed missing declaration --- src/components/dialogs/CancelJobDialog.vue | 4 +++- src/components/panels/StatusPanel.vue | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/dialogs/CancelJobDialog.vue b/src/components/dialogs/CancelJobDialog.vue index d64d918d9..402f04771 100644 --- a/src/components/dialogs/CancelJobDialog.vue +++ b/src/components/dialogs/CancelJobDialog.vue @@ -37,8 +37,10 @@ export default class CancelJobDialog extends Mixins(BaseMixin) { @Prop({ type: Boolean, default: false }) showDialog!: boolean - cancelJob(): void { + cancelJob() { this.$socket.emit('printer.print.cancel', {}, { loading: 'statusPrintCancel' }) + + this.closePrompt() } closePrompt() { diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index 49e4b0904..2265b61c7 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -167,6 +167,7 @@ export default class StatusPanel extends Mixins(BaseMixin) { bigThumbnail: any } + showCancelJobDialog = false boolShowObjects = false boolShowPauseAtLayer = false