From 2690156a9d19300f02e5d3ec379d22b362d97930 Mon Sep 17 00:00:00 2001 From: Joel McKinnon <joel.g.mckinnon@nasa.gov> Date: Fri, 31 Jan 2020 13:44:07 -0800 Subject: [PATCH] changed kebab-case event names to camelCase --- src/plugins/condition/components/ConditionCollection.vue | 8 ++++---- src/plugins/condition/components/ConditionEdit.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index 6821297e08..94471d003d 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -65,10 +65,10 @@ <ConditionEdit :condition-identifier="conditionIdentifier" :current-condition-identifier="currentConditionIdentifier" :condition-index="index" - @update-current-condition="updateCurrentCondition" - @remove-condition="removeCondition" - @condition-result-updated="handleConditionResult" - @set-move-index="setMoveIndex" + @updateCurrentCondition="updateCurrentCondition" + @removeCondition="removeCondition" + @conditionResultUpdated="handleConditionResult" + @setMoveIndex="setMoveIndex" /> </div> <div v-else> diff --git a/src/plugins/condition/components/ConditionEdit.vue b/src/plugins/condition/components/ConditionEdit.vue index a6023bf931..09b6686846 100644 --- a/src/plugins/condition/components/ConditionEdit.vue +++ b/src/plugins/condition/components/ConditionEdit.vue @@ -235,16 +235,16 @@ export default { dragStart(e) { e.dataTransfer.effectAllowed = "copyMove"; e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0); - this.$emit('set-move-index', this.conditionIndex); + this.$emit('setMoveIndex', this.conditionIndex); }, handleConditionResult(args) { - this.$emit('condition-result-updated', { + this.$emit('conditionResultUpdated', { id: this.conditionIdentifier, result: args.data.result }) }, removeCondition(ev) { //move this to conditionCollection - this.$emit('remove-condition', this.conditionIdentifier); + this.$emit('removeCondition', this.conditionIdentifier); }, setOutput() { if (this.condition.definition.output !== 'false' && this.condition.definition.output !== 'true') { @@ -307,7 +307,7 @@ export default { //find the criterion being updated and set the input property }, updateCurrentCondition() { - this.$emit('update-current-condition', this.conditionIdentifier); + this.$emit('updateCurrentCondition', this.conditionIdentifier); } } }