changed kebab-case event names to camelCase

This commit is contained in:
Joel McKinnon 2020-01-31 13:44:07 -08:00
parent dc85063467
commit 2690156a9d
2 changed files with 8 additions and 8 deletions

View File

@ -65,10 +65,10 @@
<ConditionEdit :condition-identifier="conditionIdentifier" <ConditionEdit :condition-identifier="conditionIdentifier"
:current-condition-identifier="currentConditionIdentifier" :current-condition-identifier="currentConditionIdentifier"
:condition-index="index" :condition-index="index"
@update-current-condition="updateCurrentCondition" @updateCurrentCondition="updateCurrentCondition"
@remove-condition="removeCondition" @removeCondition="removeCondition"
@condition-result-updated="handleConditionResult" @conditionResultUpdated="handleConditionResult"
@set-move-index="setMoveIndex" @setMoveIndex="setMoveIndex"
/> />
</div> </div>
<div v-else> <div v-else>

View File

@ -235,16 +235,16 @@ export default {
dragStart(e) { dragStart(e) {
e.dataTransfer.effectAllowed = "copyMove"; e.dataTransfer.effectAllowed = "copyMove";
e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0); 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) { handleConditionResult(args) {
this.$emit('condition-result-updated', { this.$emit('conditionResultUpdated', {
id: this.conditionIdentifier, id: this.conditionIdentifier,
result: args.data.result result: args.data.result
}) })
}, },
removeCondition(ev) { //move this to conditionCollection removeCondition(ev) { //move this to conditionCollection
this.$emit('remove-condition', this.conditionIdentifier); this.$emit('removeCondition', this.conditionIdentifier);
}, },
setOutput() { setOutput() {
if (this.condition.definition.output !== 'false' && this.condition.definition.output !== 'true') { 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 //find the criterion being updated and set the input property
}, },
updateCurrentCondition() { updateCurrentCondition() {
this.$emit('update-current-condition', this.conditionIdentifier); this.$emit('updateCurrentCondition', this.conditionIdentifier);
} }
} }
} }