From f0e0a8a33855416d60a3df0e55d0891cda81cc75 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 10 Apr 2018 12:25:12 -0400 Subject: [PATCH] use newly ordained list of statuses for showing cancel/delete --- awx/ui/client/features/output/details.partial.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/features/output/details.partial.html b/awx/ui/client/features/output/details.partial.html index b3f04428e7..55398f6864 100644 --- a/awx/ui/client/features/output/details.partial.html +++ b/awx/ui/client/features/output/details.partial.html @@ -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' ||