fixing cancel function for workflow results

This commit is contained in:
jaredevantabor 2017-02-07 16:04:05 -08:00
parent 48e75b3e19
commit db50779731
2 changed files with 1 additions and 15 deletions

View File

@ -36,7 +36,7 @@
<button class="List-actionButton
List-actionButton--delete"
data-placement="top"
ng-click="deleteJob()"
ng-click="cancelJob()"
ng-show="workflow.status == 'running' ||
workflow.status=='pending' "
aw-tool-tip="{{'Cancel'|translate}}"

View File

@ -106,20 +106,6 @@ export default ['$q', 'Prompt', '$filter', 'Wait', 'Rest', '$state', 'ProcessErr
});
}
});
Rest.destroy()
.success(function() {
Wait('stop');
$('#prompt-modal').modal('hide');
})
.error(function(obj, status) {
Wait('stop');
$('#prompt-modal').modal('hide');
ProcessErrors(null, obj, status, null, {
hdr: 'Error!',
msg: `Could not cancel workflow.
Returned status: ${status}`
});
});
},
actionText: 'CANCEL'
});