mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +00:00
fix lint errors
This commit is contained in:
parent
6adb190d0e
commit
79fe95372d
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user