Filter disabled operations out of the rule list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
8899162463
commit
460ea6d6ce
|
@ -138,7 +138,7 @@ const store = new Vuex.Store({
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getRules(state) {
|
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
|
return rule1.id - rule2.id || rule2.class - rule1.class
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue