Skip to content

Commit

Permalink
create new root and call revision
Browse files Browse the repository at this point in the history
  • Loading branch information
corneadoug committed Jul 29, 2016
1 parent 7cc908b commit 8512381
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions zeppelin-web/src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
templateUrl: 'app/notebook/notebook.html',
controller: 'NotebookCtrl'
})
.when('/notebook/:noteId/revision/:revisionId', {
templateUrl: 'app/notebook/notebook.html',
controller: 'NotebookCtrl'
})
.when('/jobmanager', {
templateUrl: 'app/jobmanager/jobmanager.html',
controller: 'JobmanagerCtrl'
Expand Down
6 changes: 5 additions & 1 deletion zeppelin-web/src/app/notebook/notebook.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ angular.module('zeppelinWebApp').controller('NotebookCtrl', function($scope, $ro

/** Init the new controller */
var initNotebook = function() {
websocketMsgSrv.getNotebook($routeParams.noteId);
if ($routeParams.revisionId) {
websocketMsgSrv.getNoteRevision($routeParams.noteId, $routeParams.revisionId);
} else {
websocketMsgSrv.getNotebook($routeParams.noteId);
}
websocketMsgSrv.listRevisionHistory($routeParams.noteId);

var currentRoute = $route.current;
Expand Down

0 comments on commit 8512381

Please sign in to comment.