fix lint errors

This commit is contained in:
Joel McKinnon 2020-01-06 10:44:09 -08:00
parent 6adb190d0e
commit 79fe95372d

View File

@ -28,14 +28,18 @@
<span class="c-cs-button__label">Add Condition</span> <span class="c-cs-button__label">Add Condition</span>
</button> </button>
</div> </div>
<div v-for="condition in conditions" :key="condition.key"> <div v-for="condition in conditions"
:key="condition.key"
>
<div v-if="isEditing"> <div v-if="isEditing">
<ConditionEdit :domain-object="condition.domainObject" <ConditionEdit :domain-object="condition.domainObject"
:isDefault="condition.isDefault" /> :is-default="condition.isDefault"
/>
</div> </div>
<div v-else> <div v-else>
<Condition :domain-object="condition.domainObject" <Condition :domain-object="condition.domainObject"
:isDefault="condition.isDefault" /> :is-default="condition.isDefault"
/>
</div> </div>
</div> </div>
</div> </div>
@ -92,9 +96,9 @@ export default {
}, },
removeCondition(identifier) { removeCondition(identifier) {
console.log(`remove condition`); console.log(`remove condition`);
let index = _.findIndex(this.conditions, (condition) => this.openmct.objects.makeKeyString(identifier) === item.key); // let index = _.findIndex(this.conditions, (condition) => this.openmct.objects.makeKeyString(identifier) === item.key);
this.conditions.splice(index, 1); // this.conditions.splice(index, 1);
}, },
reorder(reorderPlan) { reorder(reorderPlan) {
let oldConditions = this.conditions.slice(); let oldConditions = this.conditions.slice();