Merge branch 'master' of ssh://bitbucket.org/yackob03/quay
This commit is contained in:
commit
eb69588270
1 changed files with 5 additions and 3 deletions
|
@ -539,6 +539,8 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi
|
|||
|
||||
$scope.setTag = function(tagName, opt_updateURL) {
|
||||
var repo = $scope.repo;
|
||||
if (!repo) { return; }
|
||||
|
||||
var proposedTag = repo.tags[tagName];
|
||||
if (!proposedTag) {
|
||||
// We must find a good default
|
||||
|
@ -551,15 +553,15 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi
|
|||
|
||||
if (proposedTag) {
|
||||
$scope.currentTag = proposedTag;
|
||||
$scope.currentImage = $scope.currentTag.image;
|
||||
$scope.currentImage = proposedTag.image;
|
||||
$scope.loadImageChanges($scope.currentImage);
|
||||
if ($scope.tree) {
|
||||
$scope.tree.setTag($scope.currentTag.name);
|
||||
$scope.tree.setTag(proposedTag.name);
|
||||
}
|
||||
|
||||
if (opt_updateURL) {
|
||||
$location.search('image', null);
|
||||
$location.search('tag', $scope.currentTag.name);
|
||||
$location.search('tag', proposedTag.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue