diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-09-06 13:47:11 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-09-10 09:01:25 +0200 |
commit | d6b3af9d776c224015f9e9d8a4d858acae6f8560 (patch) | |
tree | 967ff1a894f2d1739a30945c1ee1b57acfd3ce8d /apps/workflowengine/src/components | |
parent | c665d5475affc844e583a8a546466ae27c045bb5 (diff) | |
download | nextcloud-server-d6b3af9d776c224015f9e9d8a4d858acae6f8560.tar.gz nextcloud-server-d6b3af9d776c224015f9e9d8a4d858acae6f8560.zip |
Load checks from the backend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/src/components')
-rw-r--r-- | apps/workflowengine/src/components/Check.vue | 6 | ||||
-rw-r--r-- | apps/workflowengine/src/components/Rule.vue | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue index bd3c471fc3c..e521dffbb29 100644 --- a/apps/workflowengine/src/components/Check.vue +++ b/apps/workflowengine/src/components/Check.vue @@ -50,9 +50,9 @@ export default { } }, computed: { - ...mapState({ - Checks: (state) => state.plugins.checks - }), + Checks() { + return this.$store.getters.getChecksForEntity(this.rule.entity) + }, operators() { if (!this.currentOption) { return [] } return this.Checks[this.currentOption.class].operators diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue index fab79109516..36616e9910a 100644 --- a/apps/workflowengine/src/components/Rule.vue +++ b/apps/workflowengine/src/components/Rule.vue @@ -1,5 +1,5 @@ <template> - <div class="section rule" :style="{ borderLeftColor: operation.color }"> + <div class="section rule" :style="{ borderLeftColor: operation.color || '' }"> <!-- TODO: icon-confirm --> <div class="trigger"> <p> |