mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 01:11:41 +00:00
some markup changes to improve testability
This commit is contained in:
parent
8d6bbb8e5f
commit
b116957ba8
@ -24,7 +24,7 @@
|
|||||||
<div
|
<div
|
||||||
class="c-condition-h"
|
class="c-condition-h"
|
||||||
:class="{ 'is-drag-target': draggingOver }"
|
:class="{ 'is-drag-target': draggingOver }"
|
||||||
aria-label="Condition Set Condition"
|
:aria-label="conditionSetLabel"
|
||||||
@dragover.prevent
|
@dragover.prevent
|
||||||
@drop.prevent="dropCondition($event, conditionIndex)"
|
@drop.prevent="dropCondition($event, conditionIndex)"
|
||||||
@dragenter="dragEnter($event, conditionIndex)"
|
@dragenter="dragEnter($event, conditionIndex)"
|
||||||
@ -53,7 +53,9 @@
|
|||||||
@click="expanded = !expanded"
|
@click="expanded = !expanded"
|
||||||
></span>
|
></span>
|
||||||
|
|
||||||
<span class="c-condition__name">{{ condition.configuration.name }}</span>
|
<span class="c-condition__name" aria-label="Condition Name Label">{{
|
||||||
|
condition.configuration.name
|
||||||
|
}}</span>
|
||||||
<span class="c-condition__summary">
|
<span class="c-condition__summary">
|
||||||
<template v-if="!condition.isDefault && !canEvaluateCriteria"> Define criteria </template>
|
<template v-if="!condition.isDefault && !canEvaluateCriteria"> Define criteria </template>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
@ -259,6 +261,17 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
conditionSetLabel() {
|
||||||
|
let label;
|
||||||
|
|
||||||
|
if (this.condition.id === this.currentConditionId) {
|
||||||
|
label = 'Active Condition Set Condition';
|
||||||
|
} else {
|
||||||
|
label = 'Condition Set Condition';
|
||||||
|
}
|
||||||
|
|
||||||
|
return label;
|
||||||
|
},
|
||||||
triggers() {
|
triggers() {
|
||||||
const keys = Object.keys(TRIGGER);
|
const keys = Object.keys(TRIGGER);
|
||||||
const triggerOptions = [];
|
const triggerOptions = [];
|
||||||
|
@ -114,7 +114,7 @@
|
|||||||
class="c-button c-button--major icon-plus labeled"
|
class="c-button c-button--major icon-plus labeled"
|
||||||
@click="addTestInput"
|
@click="addTestInput"
|
||||||
>
|
>
|
||||||
<span class="c-cs-button__label">Add Test Datum</span>
|
<span class="c-cs-button__label" aria-label="Add Test Datum">Add Test Datum</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user