Immediately null out the repo so that the user cannot take other actions while delete is processing

This commit is contained in:
Joseph Schorr 2013-10-01 14:17:51 -04:00
parent 71547e09b1
commit 1b844c10a6

View file

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