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 Aug 30, 2016
1 parent d11221f commit eb69cf6
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 @@ -63,6 +63,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 @@ -66,7 +66,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;
if (currentRoute) {
Expand Down

0 comments on commit eb69cf6

Please sign in to comment.