Repository: ignite
Updated Branches:
  refs/heads/master b7a0adc71 -> 7bc48acb4


IGNITE-8842 Web console: Fixed initial screen in demo mode.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7bc48acb
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7bc48acb
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7bc48acb

Branch: refs/heads/master
Commit: 7bc48acb47c52b84a23ae28e115d4ce5623fe95f
Parents: b7a0adc
Author: Vasiliy Sisko <[email protected]>
Authored: Mon Sep 10 22:14:34 2018 +0700
Committer: Alexey Kuznetsov <[email protected]>
Committed: Mon Sep 10 22:14:34 2018 +0700

----------------------------------------------------------------------
 modules/web-console/frontend/app/modules/demo/Demo.module.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7bc48acb/modules/web-console/frontend/app/modules/demo/Demo.module.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/demo/Demo.module.js 
b/modules/web-console/frontend/app/modules/demo/Demo.module.js
index 6ca19d6..8cefcd5 100644
--- a/modules/web-console/frontend/app/modules/demo/Demo.module.js
+++ b/modules/web-console/frontend/app/modules/demo/Demo.module.js
@@ -20,6 +20,8 @@ import angular from 'angular';
 import DEMO_INFO from 'app/data/demo-info.json';
 import templateUrl from 'views/templates/demo-info.tpl.pug';
 
+const DEMO_QUERY_STATE = {state: 'base.sql.notebook', params: {noteId: 
'demo'}};
+
 angular
 .module('ignite-console.demo', [
     'ignite-console.socket'
@@ -34,7 +36,7 @@ angular
         .state('demo.resume', {
             url: '/resume',
             permission: 'demo',
-            redirectTo: 'default-state',
+            redirectTo: DEMO_QUERY_STATE,
             unsaved: true,
             tfMetaTags: {
                 title: 'Demo resume'
@@ -47,11 +49,11 @@ angular
                 const $http = trans.injector().get('$http');
 
                 return $http.post('/api/v1/demo/reset')
-                    .then(() => 'default-state')
+                    .then(() => DEMO_QUERY_STATE)
                     .catch((err) => {
                         trans.injector().get('IgniteMessages').showError(err);
 
-                        return 'default-state';
+                        return DEMO_QUERY_STATE;
                     });
             },
             unsaved: true,

Reply via email to