From 1b844c10a6fb4adfc16c030bc3f689230184d164 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 1 Oct 2013 14:17:51 -0400 Subject: [PATCH] Immediately null out the repo so that the user cannot take other actions while delete is processing --- static/js/controllers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/controllers.js b/static/js/controllers.js index 2e53a98ea..4c2688c1e 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -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);