Add a tree view to the image changes view

This commit is contained in:
Joseph Schorr 2013-10-19 19:46:30 -04:00
parent 0afea3a779
commit 3a134c7ab1
4 changed files with 442 additions and 30 deletions

View file

@ -834,6 +834,15 @@ function ImageViewCtrl($scope, $routeParams, $rootScope, Restangular) {
$scope.search['$'] = filter;
document.getElementById('change-filter').value = filter;
};
$scope.initializeTree = function() {
if ($scope.tree) { return; }
$scope.tree = new ImageFileChangeTree($scope.image, $scope.combinedChanges);
setTimeout(function() {
$scope.tree.draw('changes-tree-container');
}, 10);
};
// Fetch the image.
var imageFetch = Restangular.one('repository/' + namespace + '/' + name + '/image/' + imageid);