From 36bcfd5a4192e81dc42b64688238782145a20096 Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Tue, 25 Feb 2020 08:25:02 -0800 Subject: [PATCH 1/2] disabled add or edit condition set without telemetry --- src/plugins/condition/components/Condition.vue | 2 ++ src/plugins/condition/components/ConditionCollection.vue | 9 +++++++-- src/plugins/condition/components/condition-set.scss | 8 ++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/Condition.vue index c930fee550..dbd5d91b2f 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/Condition.vue @@ -68,6 +68,7 @@ @@ -75,6 +76,7 @@ + @@ -118,7 +120,7 @@ :telemetry="telemetry" :criterion="criterion" :index="index" - :trigger="trigger" + :trigger="domainObject.configuration.trigger" @persist="persist" /> @@ -199,7 +201,6 @@ export default { domainObject: this.domainObject, currentCriteria: this.currentCriteria, expanded: true, - trigger: 'all', selectedOutputKey: '', stringOutputField: false, outputOptions: ['false', 'true', 'string'] diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index 0ecd217d2c..83f50aa8d7 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -243,7 +243,7 @@ export default { const configurationTemplate = { name: isDefault ? 'Default' : (isClone ? 'Copy of ' : '') + 'Unnamed Condition', output: 'false', - trigger: 'any', + trigger: 'all', criteria: isDefault ? [] : [{ telemetry: '', operation: '',