Have the image tree allow a state with no selected image nor so selected tag.
This commit is contained in:
parent
f1746417b1
commit
50929102b5
2 changed files with 35 additions and 25 deletions
|
@ -302,7 +302,7 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
|||
var imageFetch = Restangular.one('repository/' + namespace + '/' + name + '/image');
|
||||
imageFetch.get().then(function(resp) {
|
||||
$scope.imageHistory = resp.images;
|
||||
$scope.tree = new ImageHistoryTree(namespace, name, resp.images, $scope.currentTag,
|
||||
$scope.tree = new ImageHistoryTree(namespace, name, resp.images,
|
||||
$scope.getCommentFirstLine, $scope.getTimeSince);
|
||||
|
||||
$scope.tree.draw('image-history-container');
|
||||
|
|
Reference in a new issue