enable trigger

This commit is contained in:
Joel McKinnon 2020-02-25 09:31:29 -08:00
parent d333fd5822
commit 8539d60562
2 changed files with 5 additions and 4 deletions

View File

@ -103,7 +103,9 @@
<li class="has-local-controls t-condition">
<label>Match when</label>
<span class="controls">
<select v-model="trigger">
<select v-model="domainObject.configuration.trigger"
@change="persist"
>
<option value="all">all criteria are met</option>
<option value="any">any criteria are met</option>
</select>
@ -118,7 +120,7 @@
:telemetry="telemetry"
:criterion="criterion"
:index="index"
:trigger="trigger"
:trigger="domainObject.configuration.trigger"
@persist="persist"
/>
</ul>
@ -199,7 +201,6 @@ export default {
domainObject: this.domainObject,
currentCriteria: this.currentCriteria,
expanded: true,
trigger: 'all',
selectedOutputKey: '',
stringOutputField: false,
outputOptions: ['false', 'true', 'string']

View File

@ -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: '',