mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Merge pull request #5471 from mabashian/4987-adhoc
Leave user on jobs list when relaunching adhoc command
This commit is contained in:
commit
f377136095
@ -104,7 +104,9 @@ export default
|
||||
Rest.post(postData)
|
||||
.success(function (data) {
|
||||
Wait('stop');
|
||||
$state.go('adHocJobStdout', {id: data.id});
|
||||
if($location.path().replace(/^\//, '').split('/')[0] !== 'jobs') {
|
||||
$state.go('adHocJobStdout', {id: data.id});
|
||||
}
|
||||
})
|
||||
.error(function (data, status) {
|
||||
ProcessErrors(scope, data, status, {
|
||||
|
||||
@ -46,6 +46,7 @@ function($compile, CreateDialog, Wait, ParseTypeChange) {
|
||||
label: "Launch",
|
||||
onClick: function() {
|
||||
scope.$emit(callback);
|
||||
$('#password-modal').dialog('close');
|
||||
},
|
||||
icon: "fa-check",
|
||||
"class": "btn btn-primary",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user