1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

use newly ordained list of statuses for showing cancel/delete

This commit is contained in:
Jake McDermott 2018-04-10 12:25:12 -04:00
parent 6768b10638
commit f0e0a8a338
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35

View File

@ -12,8 +12,7 @@
class="List-actionButton List-actionButton--delete"
data-placement="top"
ng-click="vm.cancelJob()"
ng-show="vm.status.value === 'New' ||
vm.status.value === 'Pending' ||
ng-show="vm.status.value === 'Pending' ||
vm.status.value === 'Waiting' ||
vm.status.value === 'Running'"
aw-tool-tip="{{'Cancel' | translate }}"
@ -28,6 +27,7 @@
data-placement="top"
ng-click="vm.deleteJob()"
ng-show="vm.canDelete && (
vm.status.value === 'New' ||
vm.status.value === 'Successful' ||
vm.status.value === 'Failed' ||
vm.status.value === 'Error' ||