IGNITE-4855 Fixed error on switching between notebooks.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6a148e27 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6a148e27 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6a148e27 Branch: refs/heads/ignite-3477-master Commit: 6a148e27c08e2542502593dcba4f9da0d574ba57 Parents: 0765ad3 Author: Andrey Novikov <[email protected]> Authored: Thu Mar 23 09:32:38 2017 +0700 Committer: Andrey Novikov <[email protected]> Committed: Thu Mar 23 09:32:38 2017 +0700 ---------------------------------------------------------------------- .../web-console/frontend/app/modules/sql/sql.module.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/6a148e27/modules/web-console/frontend/app/modules/sql/sql.module.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/sql/sql.module.js b/modules/web-console/frontend/app/modules/sql/sql.module.js index 670e4f4..79614c2 100644 --- a/modules/web-console/frontend/app/modules/sql/sql.module.js +++ b/modules/web-console/frontend/app/modules/sql/sql.module.js @@ -34,9 +34,7 @@ angular.module('ignite-console.sql', [ .state('base.sql', { url: '/queries', abstract: true, - template: '<ui-view></ui-view>', - controller, - controllerAs: '$ctrl' + template: '<ui-view></ui-view>' }) .state('base.sql.notebook', { url: '/notebook/{noteId}', @@ -44,7 +42,9 @@ angular.module('ignite-console.sql', [ onEnter: AclRoute.checkAccess('query'), metaTags: { title: 'Query notebook' - } + }, + controller, + controllerAs: '$ctrl' }) .state('base.sql.demo', { url: '/demo', @@ -52,7 +52,9 @@ angular.module('ignite-console.sql', [ onEnter: AclRoute.checkAccess('query'), metaTags: { title: 'SQL demo' - } + }, + controller, + controllerAs: '$ctrl' }); }] )
