diff --git a/src/components/ui/AppMacroBtn.vue b/src/components/ui/AppMacroBtn.vue
index 517b081ea1..66e2cc6c70 100644
--- a/src/components/ui/AppMacroBtn.vue
+++ b/src/components/ui/AppMacroBtn.vue
@@ -4,6 +4,7 @@
:disabled="(macro.disabledWhilePrinting && printerPrinting) || !klippyReady"
:style="borderStyle"
@click="$emit('click', macro.name)"
+ v-on="$listeners"
>
@@ -15,6 +16,7 @@
:disabled="(macro.disabledWhilePrinting && printerPrinting) || !klippyReady"
:style="borderStyle"
@click="$emit('click', macro.name)"
+ v-on="$listeners"
>
@@ -114,8 +116,12 @@ export default class AppMacroBtn extends Mixins(StateMixin) {
get runCommand () {
let s = this.macro.name
if (this.params) {
- for (const param of Object.keys(this.params)) {
- s += ` ${param}=${this.params[param].value}`
+ if (['m117', 'm118'].includes(this.macro.name)) {
+ s += ` ${this.params.message.value}`
+ } else {
+ for (const param of Object.keys(this.params)) {
+ s += ` ${param}=${this.params[param].value}`
+ }
}
}
return s
@@ -130,7 +136,10 @@ export default class AppMacroBtn extends Mixins(StateMixin) {
mounted () {
if (!this.macro.config || !this.macro.config.gcode) return []
- if (this.macro.config.gcode) {
+
+ if (['m117', 'm118'].includes(this.macro.name)) {
+ this.$set(this.params, 'message', { value: '', reset: '' })
+ } else {
for (const { name, value } of gcodeMacroParams(this.macro.config.gcode)) {
if (!this.params[name]) {
this.$set(this.params, name, { value, reset: value })
diff --git a/src/components/widgets/macros/Macros.vue b/src/components/widgets/macros/Macros.vue
index 54fb66166e..c9ea0c1095 100644
--- a/src/components/widgets/macros/Macros.vue
+++ b/src/components/widgets/macros/Macros.vue
@@ -39,18 +39,27 @@
-
- {{ macro.alias || macro.name }}
-
+
+
+ {{ macro.alias || macro.name }}
+
+
+ {{ macro.config.description }}
+
@@ -90,19 +99,27 @@
-
-
- {{ macro.alias || macro.name }}
-
-
+
+
+
+ {{ macro.alias || macro.name }}
+
+
+ {{ macro.config.description }}
+