mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 11:26:42 +00:00
implimented clone criterion
This commit is contained in:
parent
7fc825949c
commit
0686e6d38f
@ -124,7 +124,7 @@
|
|||||||
/>
|
/>
|
||||||
<div class="temp">
|
<div class="temp">
|
||||||
<span class="is-enabled c-c__duplicate"
|
<span class="is-enabled c-c__duplicate"
|
||||||
@click="cloneCriterion"
|
@click="cloneCriterion(index)"
|
||||||
></span>
|
></span>
|
||||||
<span v-if="!(domainObject.configuration.criteria.length === 1)"
|
<span v-if="!(domainObject.configuration.criteria.length === 1)"
|
||||||
class="is-enabled c-c__trash"
|
class="is-enabled c-c__trash"
|
||||||
@ -281,8 +281,10 @@ export default {
|
|||||||
this.domainObject.configuration.criteria.splice(index, 1);
|
this.domainObject.configuration.criteria.splice(index, 1);
|
||||||
this.persist()
|
this.persist()
|
||||||
},
|
},
|
||||||
cloneCriterion(ev) {
|
cloneCriterion(index) {
|
||||||
// console.log('cloneCriterion')
|
const clonedCriterion = {...this.domainObject.configuration.criteria[index]};
|
||||||
|
this.domainObject.configuration.criteria.splice(index + 1, 0, clonedCriterion);
|
||||||
|
this.persist()
|
||||||
},
|
},
|
||||||
|
|
||||||
setOutput() {
|
setOutput() {
|
||||||
|
Loading…
Reference in New Issue
Block a user