mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
use ordained list of statuses for showing cancel/delete
This commit is contained in:
parent
02f9fd0ca0
commit
6768b10638
@ -12,7 +12,10 @@
|
||||
class="List-actionButton List-actionButton--delete"
|
||||
data-placement="top"
|
||||
ng-click="vm.cancelJob()"
|
||||
ng-show="vm.status.value === 'Running'|| vm.status.value ==='Pending'"
|
||||
ng-show="vm.status.value === 'New' ||
|
||||
vm.status.value === 'Pending' ||
|
||||
vm.status.value === 'Waiting' ||
|
||||
vm.status.value === 'Running'"
|
||||
aw-tool-tip="{{'Cancel' | translate }}"
|
||||
data-original-title=""
|
||||
title="">
|
||||
@ -24,9 +27,11 @@
|
||||
class="List-actionButton List-actionButton--delete"
|
||||
data-placement="top"
|
||||
ng-click="vm.deleteJob()"
|
||||
ng-hide="!vm.canDelete
|
||||
|| vm.status.value === 'Running'
|
||||
|| vm.status.value === 'Pending'"
|
||||
ng-show="vm.canDelete && (
|
||||
vm.status.value === 'Successful' ||
|
||||
vm.status.value === 'Failed' ||
|
||||
vm.status.value === 'Error' ||
|
||||
vm.status.value === 'Canceled')"
|
||||
aw-tool-tip="{{ 'Delete' | translate }}"
|
||||
data-original-title=""
|
||||
title="">
|
||||
|
Loading…
Reference in New Issue
Block a user