From 0350df85ae915710c1abe0252652c57710a85b23 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 19 Jun 2020 21:34:44 +0200 Subject: [PATCH] Fixed action/store storing logic --- src/options/LocalCommands.vue | 109 ++++++++++++++++++++++++++++++++-- src/options/Run.vue | 10 +++- 2 files changed, 111 insertions(+), 8 deletions(-) diff --git a/src/options/LocalCommands.vue b/src/options/LocalCommands.vue index 3527aa1..e4ed14d 100644 --- a/src/options/LocalCommands.vue +++ b/src/options/LocalCommands.vue @@ -1,10 +1,8 @@ @@ -213,6 +302,16 @@ form { } } } + +.no-actions { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 1.3em; + letter-spacing: 0.025em; + color: rgba(0, 0, 0, 0.8); +} diff --git a/src/options/Run.vue b/src/options/Run.vue index f0a9d40..a511595 100644 --- a/src/options/Run.vue +++ b/src/options/Run.vue @@ -81,9 +81,9 @@ -
+
- +
@@ -99,7 +99,7 @@
- +
@@ -273,6 +273,10 @@ export default { } }, + async save(event) { + return this.actionMode === 'request' ? await this.storeAction(event) : await this.storeScript(event); + }, + async storeScript(event) { const saveForm = event.target; const displayName = saveForm.displayName.value.trim();