From 25e28ab97c372a2625d6dfb371a2666743469d1c Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Thu, 20 Feb 2020 07:23:38 -0800 Subject: [PATCH] added controls for remove and duplicate criteria --- src/plugins/condition/components/Criterion.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/plugins/condition/components/Criterion.vue b/src/plugins/condition/components/Criterion.vue index e04803faf0..1102a724e9 100644 --- a/src/plugins/condition/components/Criterion.vue +++ b/src/plugins/condition/components/Criterion.vue @@ -94,6 +94,7 @@ export default { mounted() { this.updateMetadataOptions(); this.updateOperationInputVisibility(); + console.log('this.isDefault', this.isDefault); }, methods: { updateMetadataOptions() { @@ -116,6 +117,18 @@ export default { updateMetadataSelection() { this.updateOperationInputVisibility(); }, + removeCriterion(ev) { + console.log('removeCriterion', this.index); + // this.$emit('removeCondition', this.conditionIdentifier); + }, + cloneCriterion(ev) { + console.log('cloneCriterion') + // this.$emit('cloneCondition', { + // identifier: this.conditionIdentifier, + // index: Number(ev.target.closest('.widget-condition').getAttribute('data-condition-index')) + // }); + }, + persist() { this.$emit('persist', this.criterion); }