mirror of
https://github.com/nasa/openmct.git
synced 2025-03-10 22:43:55 +00:00
[Edit] Switch other edit actions to mct-control
This commit is contained in:
parent
e3e7bd27e9
commit
4b51e604a7
@ -245,7 +245,9 @@ define([
|
|||||||
"key": "cancel",
|
"key": "cancel",
|
||||||
"category": "conclude-editing",
|
"category": "conclude-editing",
|
||||||
"implementation": CancelAction,
|
"implementation": CancelAction,
|
||||||
"name": "Cancel",
|
// Because we use the name as label for edit buttons and mct-control buttons need
|
||||||
|
// the label to be set to undefined in order to not apply the labeled CSS rule.
|
||||||
|
"name": undefined,
|
||||||
"cssclass": "icon-x no-label",
|
"cssclass": "icon-x no-label",
|
||||||
"description": "Discard changes made to these objects.",
|
"description": "Discard changes made to these objects.",
|
||||||
"depends": []
|
"depends": []
|
||||||
|
@ -42,11 +42,12 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span ng-repeat="currentAction in otherEditActions">
|
<span ng-repeat="currentAction in otherEditActions">
|
||||||
<a class='s-button {{currentAction.getMetadata().cssclass}}'
|
<mct-control key="'button'"
|
||||||
title='{{currentAction.getMetadata().name}}'
|
structure="{
|
||||||
ng-click="currentAction.perform()"
|
text: currentAction.getMetadata().name,
|
||||||
ng-class="{ major: $index === 0 && saveActions.length === 0 }">
|
click: currentAction.perform,
|
||||||
<span class="title-label">{{currentAction.getMetadata().name}}</span>
|
cssclass: currentAction.getMetadata().cssclass
|
||||||
</a>
|
}">
|
||||||
|
</mct-control>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
Loading…
x
Reference in New Issue
Block a user