mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 06:54:01 +00:00
[Edit] Make single save button use mct-control
This commit is contained in:
parent
2a2e9ef99d
commit
ae89dcd62d
@ -22,11 +22,13 @@
|
|||||||
<span ng-controller="EditActionController">
|
<span ng-controller="EditActionController">
|
||||||
<!-- If there's a single save action show a button, otherwise show a dropdown with all save actions. -->
|
<!-- If there's a single save action show a button, otherwise show a dropdown with all save actions. -->
|
||||||
<span ng-if="saveActions.length === 1">
|
<span ng-if="saveActions.length === 1">
|
||||||
<a class='s-button major {{saveActions[0].getMetadata().cssclass}}'
|
<mct-control key="'button'"
|
||||||
title='{{saveActions[0].getMetadata().name}}'
|
structure="{
|
||||||
ng-click="saveActions[0].perform()">
|
text: saveActions[0].getMetadata().name,
|
||||||
<span class="title-label">{{saveActions[0].getMetadata().name}}</span>
|
click: saveActions[0].perform,
|
||||||
</a>
|
cssclass: 'major ' + saveActions[0].getMetadata().cssclass
|
||||||
|
}">
|
||||||
|
</mct-control>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span ng-if="saveActions.length > 1">
|
<span ng-if="saveActions.length > 1">
|
||||||
@ -39,7 +41,7 @@
|
|||||||
</mct-control>
|
</mct-control>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span ng-repeat="currentAction in otherEditActions">
|
<span ng-repeat="currentAction in otherEditActions">
|
||||||
<a class='s-button {{currentAction.getMetadata().cssclass}}'
|
<a class='s-button {{currentAction.getMetadata().cssclass}}'
|
||||||
title='{{currentAction.getMetadata().name}}'
|
title='{{currentAction.getMetadata().name}}'
|
||||||
ng-click="currentAction.perform()"
|
ng-click="currentAction.perform()"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user