mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #4429 from mabashian/4273-add-credential-refresh-list
Properly redirect after creating a new credential
This commit is contained in:
commit
7c9dc5194c
@ -289,14 +289,12 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
|
||||
Wait('stop');
|
||||
var base = $location.path().replace(/^\//, '').split('/')[0];
|
||||
if (base === 'credentials') {
|
||||
ReturnToCaller();
|
||||
if (base === 'credentials') {
|
||||
$state.go('credentials.edit', {credential_id: data.id}, {reload: true});
|
||||
}
|
||||
else {
|
||||
ReturnToCaller(1);
|
||||
}
|
||||
$state.go('credentials.edit', {credential_id: data.id}, {reload: true});
|
||||
|
||||
})
|
||||
.error(function (data, status) {
|
||||
Wait('stop');
|
||||
|
Loading…
Reference in New Issue
Block a user