From a7509e763f91927d8afc29c6b13b7fee289ed655 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Thu, 22 Jun 2023 16:44:52 +0100 Subject: [PATCH] feat: adds Tool Changer controls (#1111) Signed-off-by: Pedro Lamas --- .../widgets/toolhead/ExtruderSelection.vue | 6 +- .../widgets/toolhead/ToolChangeMacros.vue | 56 +++++++++++++++++++ src/components/widgets/toolhead/Toolhead.vue | 6 +- 3 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 src/components/widgets/toolhead/ToolChangeMacros.vue diff --git a/src/components/widgets/toolhead/ExtruderSelection.vue b/src/components/widgets/toolhead/ExtruderSelection.vue index f4e795959c..e45daf7b03 100644 --- a/src/components/widgets/toolhead/ExtruderSelection.vue +++ b/src/components/widgets/toolhead/ExtruderSelection.vue @@ -3,7 +3,7 @@ v-model="extruder" :items="extruders" :readonly="printerPrinting" - :disabled="!klippyReady" + :disabled="!klippyReady || printerPrinting" item-value="key" item-text="name" hide-details @@ -18,9 +18,7 @@ import { Component, Mixins } from 'vue-property-decorator' import StateMixin from '@/mixins/state' -@Component({ - components: {} -}) +@Component({}) export default class ExtruderSelection extends Mixins(StateMixin) { get extruders () { return this.$store.getters['printer/getExtruders'] diff --git a/src/components/widgets/toolhead/ToolChangeMacros.vue b/src/components/widgets/toolhead/ToolChangeMacros.vue new file mode 100644 index 0000000000..5d6c5b4f3b --- /dev/null +++ b/src/components/widgets/toolhead/ToolChangeMacros.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/components/widgets/toolhead/Toolhead.vue b/src/components/widgets/toolhead/Toolhead.vue index e442488b8d..5f53c95fec 100644 --- a/src/components/widgets/toolhead/Toolhead.vue +++ b/src/components/widgets/toolhead/Toolhead.vue @@ -1,6 +1,8 @@