Tweak: Only show enable or disable button.
This commit is contained in:
parent
53a0ecd366
commit
6cab6371d1
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ myApp.config(['NgAdminConfigurationProvider', function(NgAdminConfigurationProvi
|
|||
])
|
||||
.listActions(
|
||||
'<fa-task-action-button action="run" task="entry" button="primary" label="run" size="sm"></fa-task-action-button> ' +
|
||||
'<fa-task-action-button disabled="entry.values.enabled" button="success" action="enable" icon="off" task="entry" label="enable" size="sm"></fa-task-action-button> ' +
|
||||
'<fa-task-action-button disabled="!entry.values.enabled" button="warning" action="disable" icon="off" task="entry" label="disable" size="sm"></fa-task-action-button>'
|
||||
'<fa-task-action-button ng-if="!entry.values.enabled" button="success" action="enable" icon="off" task="entry" label="enable" size="sm"></fa-task-action-button> ' +
|
||||
'<fa-task-action-button ng-if="entry.values.enabled" button="warning" action="disable" icon="off" task="entry" label="disable" size="sm"></fa-task-action-button>'
|
||||
)
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue