Immediately null out the repo so that the user cannot take other actions while delete is processing
This commit is contained in:
parent
71547e09b1
commit
1b844c10a6
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,8 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
|
|||
|
||||
var deleteAction = Restangular.one('repository/' + namespace + '/' + name);
|
||||
deleteAction.customDELETE().then(function() {
|
||||
$scope.repo = null;
|
||||
|
||||
setTimeout(function() {
|
||||
document.location = '/#/repository';
|
||||
}, 1000);
|
||||
|
|
Reference in a new issue