summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-01-09 08:25:37 +0100
committerJulius Härtl <jus@bitgrid.net>2020-01-09 08:46:22 +0100
commit460ea6d6ceaf96bbc064451403e1fec9b3f124cd (patch)
tree52319e5d514361e0bccebeb229bc2815f4825a9f /apps/workflowengine
parent8899162463c44c6b22b2b9cee9c3a3d4370bbc7b (diff)
downloadnextcloud-server-460ea6d6ceaf96bbc064451403e1fec9b3f124cd.tar.gz
nextcloud-server-460ea6d6ceaf96bbc064451403e1fec9b3f124cd.zip
Filter disabled operations out of the rule list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine')
-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
})
},