Get tag deletion working

This commit is contained in:
Joseph Schorr 2014-01-07 15:21:24 -05:00
parent 9da93c7caf
commit 971dd7dd3a
2 changed files with 47 additions and 2 deletions

View file

@ -250,6 +250,11 @@ function RepoCtrl($scope, Restangular, ApiService, $routeParams, $rootScope, $lo
$location.search('tag', $scope.currentTag.name);
}
}
if ($scope.currentTag && !repo.tags[$scope.currentTag.name]) {
$scope.currentTag = null;
$scope.currentImage = null;
}
};
$scope.getTagCount = function(repo) {