-
-
- <
-
-
- {{ActionList[action.action].name}}: {{
- ActionList[action.action].args.find(x => x.arg === action.arg) || action.arg
+ {{ActionList[action.cmd].name}}: {{
+ /*ActionList[action.cmd].args.find(x => x.arg === action.arg).arg ||*/ action.arg
}}
-
-
+
+ <
+
+
🗙
-
🖉
+
+ >
+
-
- >
-
-
+
@@ -57,7 +55,9 @@ export default {
},
methods: {
parseActionShortcut(action) {
- return KeyboardShortcutParser.parseShortcut(action.shortcut[0]);
+ if (action.shortcut) {
+ return KeyboardShortcutParser.parseShortcut(action.shortcut[0]);
+ }
},
setAction(cmd) {
console.log("SETTING ACTION", cmd);
@@ -70,13 +70,36 @@ export default {
this.selectedArgument = arg;
this.customArgumentValue = undefined;
},
- emitCommand() {
- this.$emit(
- 'set-command',
- this.selectedAction,
- this.customArgumentValue ? this.customArgumentValue : this.selectedArgument.arg
- );
- }
+ // emitCommand() {
+ // this.$emit(
+ // 'set-command',
+ // this.selectedAction,
+ // this.customArgumentValue ? this.customArgumentValue : this.selectedArgument.arg
+ // );
+ // }
}
}
-
\ No newline at end of file
+
+
+
diff --git a/src/options/controls-settings/command-builder/command-chain.vue b/src/options/controls-settings/command-builder/command-chain.vue
index f96d515..5ebcb00 100644
--- a/src/options/controls-settings/command-builder/command-chain.vue
+++ b/src/options/controls-settings/command-builder/command-chain.vue
@@ -1,22 +1,20 @@
-
- {{command}}
-
+
@@ -37,7 +35,17 @@ export default {
'command'
],
methods: {
-
}
}
-
\ No newline at end of file
+
+
diff --git a/src/options/controls-settings/scope-settings-component/set-shortcut-button.vue b/src/options/controls-settings/scope-settings-component/set-shortcut-button.vue
index 64684c1..9a33403 100644
--- a/src/options/controls-settings/scope-settings-component/set-shortcut-button.vue
+++ b/src/options/controls-settings/scope-settings-component/set-shortcut-button.vue
@@ -25,7 +25,7 @@ export default {
}
},
created(){
- if (shortcut) {
+ if (this.shortcut) {
this.shortcutText = KeyboardShortcutParser.parseShortcut(shortcut);
}
},