From 8e7ab15a1ca3c83278ec205fb0f7d846da2fa33e Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 3 Oct 2021 15:40:44 +0200 Subject: [PATCH] [editor] Add description to "Add Action" form group Signed-off-by: Knut Ahlers --- editor/app.js | 12 ++++++++++++ editor/index.html | 1 + 2 files changed, 13 insertions(+) diff --git a/editor/app.js b/editor/app.js index e0e3d4e..a4614a2 100644 --- a/editor/app.js +++ b/editor/app.js @@ -8,6 +8,18 @@ const NANO = 1000000000 Vue.config.devtools = true new Vue({ computed: { + addActionDescription() { + if (!this.models.addAction) { + return '' + } + + for (const action of this.actions) { + if (action.type === this.models.addAction) { + return action.description + } + } + }, + authURL() { const scopes = [] diff --git a/editor/index.html b/editor/index.html index 57be23a..18195d6 100644 --- a/editor/index.html +++ b/editor/index.html @@ -811,6 +811,7 @@