diff --git a/package-lock.json b/package-lock.json
index 0b9c13ce..c56b1e35 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,7 @@
"vuex": "^3.6.2"
},
"devDependencies": {
- "@mdi/font": "^5.9.55",
+ "@mdi/font": "^6.2.95",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.29.3",
@@ -1894,9 +1894,9 @@
}
},
"node_modules/@mdi/font": {
- "version": "5.9.55",
- "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz",
- "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==",
+ "version": "6.2.95",
+ "resolved": "https://registry.npmjs.org/@mdi/font/-/font-6.2.95.tgz",
+ "integrity": "sha512-0RKkhabkFZP3ALwKqrjhdKdhydQpoydIjX6cvjIwLyjADCsE0pG68YkGY+S3qnfdErmhS4m8adwvgrAFXp2AYQ==",
"dev": true
},
"node_modules/@mrmlnc/readdir-enhanced": {
@@ -21722,9 +21722,9 @@
}
},
"@mdi/font": {
- "version": "5.9.55",
- "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz",
- "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==",
+ "version": "6.2.95",
+ "resolved": "https://registry.npmjs.org/@mdi/font/-/font-6.2.95.tgz",
+ "integrity": "sha512-0RKkhabkFZP3ALwKqrjhdKdhydQpoydIjX6cvjIwLyjADCsE0pG68YkGY+S3qnfdErmhS4m8adwvgrAFXp2AYQ==",
"dev": true
},
"@mrmlnc/readdir-enhanced": {
diff --git a/package.json b/package.json
index 6b81f81f..bb80dd1a 100644
--- a/package.json
+++ b/package.json
@@ -51,7 +51,7 @@
"vuex": "^3.6.2"
},
"devDependencies": {
- "@mdi/font": "^5.9.55",
+ "@mdi/font": "^6.2.95",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.29.3",
diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue
index ecf7478f..6cf5ec0b 100644
--- a/src/components/panels/StatusPanel.vue
+++ b/src/components/panels/StatusPanel.vue
@@ -73,43 +73,10 @@
-
-
-
-
- mdi-printer-3d-nozzle{{ current_object !== null ? current_object : '--' }}
-
-
- mdi-close-circle
-
-
-
-
-
-
-
-
-
- {{ object.name }}
-
-
- {{ $t('Panels.StatusPanel.Canceled') }}
- mdi-close-circle
-
-
-
-
-
-
-
-
-
- mdi-chevron-{{ boolShowObjects ? 'up' : 'down' }}{{ $t('Panels.StatusPanel.CountObjects', {count: printing_objects.length}) }}mdi-chevron-{{ boolShowObjects ? 'up' : 'down' }}
-
-
-
-
-
+
@@ -304,21 +271,6 @@
-
-
-
-
- {{ $t("Panels.StatusPanel.ExcludeObjectHeadline") }}
-
-
- {{ $t("Panels.StatusPanel.ExcludeObjectText", {name: cancelObjectDialog.objectName}) }}
-
-
- {{ $t("Panels.StatusPanel.Cancel") }}
- {{ $t("Panels.StatusPanel.ExcludeObject") }}
-
-
-
@@ -330,19 +282,16 @@ import MinSettingsPanel from '@/components/panels/MinSettingsPanel.vue'
import MoonrakerStatePanel from '@/components/panels/MoonrakerStatePanel.vue'
import KlippyStatePanel from '@/components/panels/KlippyStatePanel.vue'
import KlipperWarningsPanel from '@/components/panels/KlipperWarningsPanel.vue'
+import StatusPanelExcludeObject from '@/components/panels/StatusPanelExcludeObject.vue'
@Component({
- components: {KlipperWarningsPanel, KlippyStatePanel, MoonrakerStatePanel, MinSettingsPanel}
+ components: {
+ StatusPanelExcludeObject, KlipperWarningsPanel, KlippyStatePanel, MoonrakerStatePanel, MinSettingsPanel}
})
export default class StatusPanel extends Mixins(BaseMixin) {
maxFlow = 0
boolShowObjects = false
- cancelObjectDialog = {
- bool: false,
- objectName: ''
- }
-
$refs!: {
bigThumbnail: any
}
@@ -422,6 +371,13 @@ export default class StatusPanel extends Mixins(BaseMixin) {
loadingName: 'statusPrintResume',
status: ['paused'],
click: this.btnResumeJob
+ }, {
+ text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
+ color: 'orange',
+ icon: 'mdi-selection-remove',
+ loadingName: '',
+ status: this.printing_objects.length ? ['paused', 'printing'] : [],
+ click: this.btnExcludeObject
}, {
text: this.$t('Panels.StatusPanel.CancelPrint'),
color: 'red',
@@ -621,12 +577,8 @@ export default class StatusPanel extends Mixins(BaseMixin) {
return this.$store.state.printer.exclude_object?.objects ?? []
}
- get current_object() {
- return this.$store.state.printer.exclude_object?.current_object ?? null
- }
-
- get excluded_objects() {
- return this.$store.state.printer.exclude_object?.excluded_objects ?? []
+ updateShowDialog(newVal: boolean) {
+ this.boolShowObjects = newVal
}
btnPauseJob() {
@@ -637,6 +589,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
this.$socket.emit('printer.print.resume', { }, { loading: 'statusPrintResume' })
}
+ btnExcludeObject() {
+ this.boolShowObjects = true
+ }
+
btnCancelJob() {
this.$socket.emit('printer.print.cancel', { }, { loading: 'statusPrintCancel' })
}
@@ -692,16 +648,6 @@ export default class StatusPanel extends Mixins(BaseMixin) {
}
}
- openCancelObjectDialog(objectName: string) {
- this.cancelObjectDialog.objectName = objectName
- this.cancelObjectDialog.bool = true
- }
-
- cancelObject() {
- this.$socket.emit('printer.gcode.script', {script: 'EXCLUDE_OBJECT NAME='+this.cancelObjectDialog.objectName})
- this.cancelObjectDialog.bool = false
- }
-
onResize() {
const isFocused = (document.activeElement === this.$refs.bigThumbnail?.$el)
if (isFocused) this.focusBigThumbnail()
diff --git a/src/components/panels/StatusPanelExcludeObject.vue b/src/components/panels/StatusPanelExcludeObject.vue
new file mode 100644
index 00000000..2f889dd5
--- /dev/null
+++ b/src/components/panels/StatusPanelExcludeObject.vue
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+ mdi-printer-3d-nozzle{{ current_object !== null ? current_object : '--' }}
+
+
+ mdi-close-circle
+
+
+
+
+
+
+
+
+ mdi-selection-remove{{ $t("Panels.StatusPanel.ExcludeObject.ExcludeObjectHeadline") }}
+
+
+ {{ $t("Panels.StatusPanel.ExcludeObject.ExcludeObjectText", {name: excludeObjectDialogName}) }}
+
+
+ {{ $t("Panels.StatusPanel.ExcludeObject.Cancel") }}
+ {{ $t("Panels.StatusPanel.ExcludeObject.ExcludeObject") }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/panels/StatusPanelExcludeObjectDialog.vue b/src/components/panels/StatusPanelExcludeObjectDialog.vue
new file mode 100644
index 00000000..42c3db0a
--- /dev/null
+++ b/src/components/panels/StatusPanelExcludeObjectDialog.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+ mdi-selection-remove{{ $t('Panels.StatusPanel.ExcludeObject.ExcludeObject') }}
+
+
+ mdi-close-thick
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/panels/StatusPanelExcludeObjectDialogList.vue b/src/components/panels/StatusPanelExcludeObjectDialogList.vue
new file mode 100644
index 00000000..29007ce2
--- /dev/null
+++ b/src/components/panels/StatusPanelExcludeObjectDialogList.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+ {{ object.name }}
+
+
+ {{ $t('Panels.StatusPanel.ExcludeObject.Excluded') }}
+ mdi-close-circle
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/panels/StatusPanelExcludeObjectDialogMap.vue b/src/components/panels/StatusPanelExcludeObjectDialogMap.vue
new file mode 100644
index 00000000..9522ff99
--- /dev/null
+++ b/src/components/panels/StatusPanelExcludeObjectDialogMap.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/locales/en.json b/src/locales/en.json
index cfce15e0..9a0b1262 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -337,12 +337,13 @@
"Slicer": "Slicer",
"ETA": "ETA",
"Unknown": "Unknown",
- "ExcludeObjectHeadline": "Exclude Object",
- "ExcludeObjectText": "Do you really want to exclude \"{name}\"?",
- "Cancel": "cancel",
- "ExcludeObject": "Exclude object",
- "CountObjects": "{count} Objects",
- "Canceled": "Canceled"
+ "ExcludeObject": {
+ "ExcludeObject": "Exclude Object",
+ "Excluded": "Excluded",
+ "ExcludeObjectHeadline": "Exclude Object",
+ "ExcludeObjectText": "Do you really want to exclude \"{name}\"?",
+ "Cancel": "cancel"
+ }
},
"ToolsPanel": {
"Headline": "Temperatures",