From 642499d519de41f49f5f893a2695c987bd8316f7 Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Thu, 16 Jan 2020 09:56:17 -0800 Subject: [PATCH] added string output field --- .../condition/components/ConditionEdit.vue | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/plugins/condition/components/ConditionEdit.vue b/src/plugins/condition/components/ConditionEdit.vue index 5476b0611f..5710cabe67 100644 --- a/src/plugins/condition/components/ConditionEdit.vue +++ b/src/plugins/condition/components/ConditionEdit.vue @@ -47,10 +47,16 @@
  • - + + + +
  • @@ -62,8 +68,8 @@ @@ -135,7 +141,8 @@ export default { telemetryMetadata: this.telemetryMetadata, operations: OPERATIONS, selectedMetaDataKey: null, - selectedOperationKey: null + selectedOperationKey: null, + stringOutput: false }; }, mounted() { @@ -185,6 +192,17 @@ export default { } else { this.conditionCollection[0].isCurrent = true; } + }, + getOutputBinary(ev) { + if (ev.target.value !== 'string') { + this.condition.output = ev.target.value; + this.stringOutput = false; + } else { + this.stringOutput = true; + } + }, + getOutputString(ev) { + this.condition.output = ev.target.value; } } }