mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Leave user on jobs list when relaunching adhoc command
This commit is contained in:
@@ -104,7 +104,9 @@ export default
|
|||||||
Rest.post(postData)
|
Rest.post(postData)
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
Wait('stop');
|
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) {
|
.error(function (data, status) {
|
||||||
ProcessErrors(scope, data, status, {
|
ProcessErrors(scope, data, status, {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ function($compile, CreateDialog, Wait, ParseTypeChange) {
|
|||||||
label: "Launch",
|
label: "Launch",
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
scope.$emit(callback);
|
scope.$emit(callback);
|
||||||
|
$('#password-modal').dialog('close');
|
||||||
},
|
},
|
||||||
icon: "fa-check",
|
icon: "fa-check",
|
||||||
"class": "btn btn-primary",
|
"class": "btn btn-primary",
|
||||||
|
|||||||
Reference in New Issue
Block a user