Have the image tree allow a state with no selected image nor so selected tag.

This commit is contained in:
Joseph Schorr 2013-10-16 22:33:35 -04:00
parent f1746417b1
commit 50929102b5
2 changed files with 35 additions and 25 deletions

View file

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