commit | 6d91274ebc99df73b453a67397f14a5ba27676e5 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sun Oct 16 23:57:26 2022 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sun Oct 16 23:57:26 2022 +0200 |
tree | 05828d3585fa27bb0efc7098f2a6b728c8f8e742 | |
parent | 7f1e8ea3ae329c59c5d3a02d4767b81d5e5c3266 [diff] |
Workflow manager: only show supported actions Bug: twpowertools:74 Change-Id: Ia2c407acb302bd477e1e33423570ce095138c396
diff --git a/src/workflows/manager/components/ActionEditor.js b/src/workflows/manager/components/ActionEditor.js index fbd0bed..971b098 100644 --- a/src/workflows/manager/components/ActionEditor.js +++ b/src/workflows/manager/components/ActionEditor.js
@@ -92,7 +92,7 @@ class="select" @change=${this._actionCaseChanged}> ${map(actionCases, ([actionName, num]) => { - if (num == 0) return nothing; + if (!kSupportedActions.has(num)) return nothing; return html` <option value=${num} ?selected=${selectedActionCase == num}> ${kActionHeadings[num] ?? actionName}