IGNITE-5908 Restore splash.

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

Branch: refs/heads/ignite-5872
Commit: 0eedf46bddb9647cc02efd982b212c8c0df19308
Parents: eb33607
Author: anovikov <anovi...@gridgain.com>
Authored: Fri Aug 4 18:10:36 2017 +0700
Committer: Alexey Kuznetsov <akuznet...@apache.org>
Committed: Fri Aug 4 18:10:36 2017 +0700

----------------------------------------------------------------------
 .../hide-on-state-change/hide-on-state-change.directive.js   | 8 ++------
 modules/web-console/frontend/views/index.pug                 | 8 ++++++++
 2 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0eedf46b/modules/web-console/frontend/app/directives/hide-on-state-change/hide-on-state-change.directive.js
----------------------------------------------------------------------
diff --git 
a/modules/web-console/frontend/app/directives/hide-on-state-change/hide-on-state-change.directive.js
 
b/modules/web-console/frontend/app/directives/hide-on-state-change/hide-on-state-change.directive.js
index 98f1c57..152e942 100644
--- 
a/modules/web-console/frontend/app/directives/hide-on-state-change/hide-on-state-change.directive.js
+++ 
b/modules/web-console/frontend/app/directives/hide-on-state-change/hide-on-state-change.directive.js
@@ -15,13 +15,9 @@
  * limitations under the License.
  */
 
-export default ['hideOnStateChange', ['$timeout', ($timeout) => {
+export default ['hideOnStateChange', ['$transitions', ($transitions) => {
     const link = (scope, element) => {
-        scope.$on('$stateChangeSuccess', () => {
-            $timeout(() => {
-                element.fadeOut('slow');
-            });
-        });
+        $transitions.onSuccess({}, () => element.fadeOut('slow'));
     };
 
     return {

http://git-wip-us.apache.org/repos/asf/ignite/blob/0eedf46b/modules/web-console/frontend/views/index.pug
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/index.pug 
b/modules/web-console/frontend/views/index.pug
index 1881b38..2e47e87 100644
--- a/modules/web-console/frontend/views/index.pug
+++ b/modules/web-console/frontend/views/index.pug
@@ -30,6 +30,14 @@ html(ng-app='ignite-console' id='app' ng-strict-di)
 
     body.theme-line.body-overlap
 
+        .splash.splash-max-foreground(hide-on-state-change)
+            .splash-wrapper
+                .spinner
+                    .bounce1
+                    .bounce2
+                    .bounce3
+
+                .splash-wellcome Loading...
 
         .ribbon-wrapper.right(ng-cloak)
             .ribbon(ng-style='IgniteDemoMode && {"background": "#1b6d88"}')

Reply via email to