1
0
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:
Michael Abashian 2016-12-14 13:33:07 -05:00 committed by GitHub
commit 7c9dc5194c

View File

@ -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');