summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-01-09 08:25:37 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2020-01-09 11:12:19 +0000
commit837d3ea4f9da4ea3e55b16e2f92891025ad9d6c8 (patch)
tree0f74382bc36f097febbe02a2a04d3e2041425005 /apps
parent5fdac43d5b82a9b38bb0be6492ea072fb08f0760 (diff)
downloadnextcloud-server-837d3ea4f9da4ea3e55b16e2f92891025ad9d6c8.tar.gz
nextcloud-server-837d3ea4f9da4ea3e55b16e2f92891025ad9d6c8.zip
Filter disabled operations out of the rule list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/workflowengine/src/store.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js
index c02aa99f63a..79524ab4514 100644
--- a/apps/workflowengine/src/store.js
+++ b/apps/workflowengine/src/store.js
@@ -138,7 +138,7 @@ const store = new Vuex.Store({
},
getters: {
getRules(state) {
- return state.rules.sort((rule1, rule2) => {
+ return state.rules.filter((rule) => typeof state.operations[rule.class] !== 'undefined').sort((rule1, rule2) => {
return rule1.id - rule2.id || rule2.class - rule1.class
})
},