added controls for remove and duplicate criteria

This commit is contained in:
Joel McKinnon 2020-02-20 07:23:38 -08:00
parent 43056c4068
commit 25e28ab97c

View File

@ -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);
}