You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/09/23 13:11:25 UTC

[1/3] ignite git commit: IGNITE-843 Login / sign up in one column.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843 09c14d5d0 -> 91c38aa42


IGNITE-843 Login / sign up in one column.


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

Branch: refs/heads/ignite-843
Commit: 763cfc259737976caf3a06b08f1b62eced17c384
Parents: 09c14d5
Author: vsisko <vs...@gridgain.com>
Authored: Wed Sep 23 18:10:15 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Sep 23 18:10:15 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/public/stylesheets/style.scss   | 10 ++-
 .../src/main/js/views/index.jade                | 83 +++++++++-----------
 2 files changed, 45 insertions(+), 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/763cfc25/modules/control-center-web/src/main/js/public/stylesheets/style.scss
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/public/stylesheets/style.scss b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
index c5bd9f6..b317408 100644
--- a/modules/control-center-web/src/main/js/public/stylesheets/style.scss
+++ b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
@@ -326,8 +326,8 @@ h1, h2, h3, h4, h5, h6 {
 .login-footer {
     @extend .modal-footer;
 
-    margin-left: 20px;
-    margin-right: 20px;
+    padding-left: 8px;
+    padding-right: 4px;
 }
 
 .modal-body {
@@ -1296,6 +1296,8 @@ a {
 }
 
 .block-callout-parent {
+    margin-top: 10px;
+
     table {
         width: 100%
     }
@@ -1491,6 +1493,10 @@ a {
     background-color: rgba(255, 255, 255, 1) !important;
 }
 
+.dw-loading {
+    min-height: 200px;
+}
+
 .dw-loading > .dw-loading-body > .dw-loading-text {
     left: -50%;
 }

http://git-wip-us.apache.org/repos/asf/ignite/blob/763cfc25/modules/control-center-web/src/main/js/views/index.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/index.jade b/modules/control-center-web/src/main/js/views/index.jade
index 346834d..21b0435 100644
--- a/modules/control-center-web/src/main/js/views/index.jade
+++ b/modules/control-center-web/src/main/js/views/index.jade
@@ -17,7 +17,7 @@
 extends templates/layout
 
 mixin lbl(txt)
-    label.col-xs-5.col-sm-4.required #{txt}
+    label.col-xs-4.col-sm-3.col-sm-offset-1.required #{txt}
 
 block container
     .row(ng-controller='auth')
@@ -38,50 +38,41 @@ block container
                                     li Load metadata from database
                                     li Execute SQL queries
         hr
-        .col-xs-6.col-sm-6.col-md-6(ng-init='loginAction == "login"')
-            form(name='loginForm')
-                .modal-body.row
-                    .col-sm-10.col-sm-offset-1
-                        p(ng-show='loginAction == "password/forgot"')
+        form(name='loginForm')
+            .modal-body.row
+                .col-sm-6.col-sm-offset-3
+                    .details-row
+                        p.col-xs-10.col-sm-10.col-sm-offset-1(ng-show='action == "password/forgot"')
                             | That's ok! Simply enter your email below and a reset password link will be sent to you via email. You can then follow that link and select a new password.
-                        .details-row
-                            +lbl('Email:')
-                            .col-xs-7.col-sm-8
-                                input#login_user_email.form-control(enter-focus-next='login_user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='loginAction == "password/forgot" && loginForm.$valid && auth(loginAction, user_info)')
-                        .details-row(ng-show='loginAction != "password/forgot"')
-                            +lbl('Password:')
-                            .col-xs-7.col-sm-8
-                                input#login_user_password.form-control(type='password' ng-model='user_info.password' placeholder='Password' ng-required='loginAction != "password/forgot"' on-enter='loginAction == "login" && loginForm.$valid && auth(loginAction, user_info)')
-        .col-xs-6.col-sm-6.col-md-6
-            form(name='signupForm')
-                .modal-body.row
-                    .col-sm-10.col-sm-offset-1
-                        .details-row
-                            +lbl('Full Name:')
-                            .col-xs-7.col-sm-8
-                                input#signup_user_name.form-control(enter-focus-next='signup_user_email' type='text' ng-model='user_info.username' placeholder='John Smith' required)
-                        .details-row
-                            +lbl('Email:')
-                            .col-xs-7.col-sm-8
-                                input#signup_user_email.form-control(enter-focus-next='signup_user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='signupForm.$valid && auth("register", user_info)')
-                        .details-row
-                            +lbl('Password:')
-                            .col-xs-7.col-sm-8
-                                input#signup_user_password.form-control(enter-focus-next='signup_user_confirm' type='password' ng-model='user_info.password' placeholder='Password' required on-enter='signupForm.$valid && auth("register", user_info)')
-                        .details-row
-                            +lbl('Confirm:')
-                            .col-xs-7.col-sm-8
-                                input#signup_user_confirm.form-control(type='password' ng-model='user_info.confirm' match='user_info.password' placeholder='Confirm password' required on-enter='signupForm.$valid && auth("register", user_info)')
-        .col-xs-6.col-sm-6.col-md-6
-            .col-sm-10.col-sm-offset-1
-                .login-footer(ng-show='loginAction == "login"')
-                    a.labelField(ng-click='loginAction = "password/forgot"' on-click-focus='user_email') Forgot password?
-                    button.btn.btn-primary(ng-click='auth(loginAction, user_info)' ng-disabled='loginForm.$invalid') Log In
-                .login-footer(ng-show='loginAction == "password/forgot"')
-                    a.labelField(ng-click='loginAction = "login"' on-click-focus='user_email') Log In
-                    button.btn.btn-primary(ng-click='auth(loginAction, user_info)' ng-disabled='loginForm.$invalid') Send it to me
-        .col-xs-6.col-sm-6.col-md-6
-            .col-sm-10.col-sm-offset-1
-                .login-footer
-                    button#signup.btn.btn-primary(ng-click='auth("register", user_info)' ng-disabled='signupForm.$invalid') Sign Up
+                    .details-row(ng-show='action == "register"')
+                        +lbl('Full Name:')
+                        .col-xs-6.col-sm-7
+                            input#user_name.form-control(enter-focus-next='user_email' type='text' ng-model='user_info.username' placeholder='John Smith' ng-required='action=="register"')
+                    .details-row
+                        +lbl('Email:')
+                        .col-xs-6.col-sm-7
+                            input#user_email.form-control(enter-focus-next='user_password' type='email' ng-model='user_info.email' placeholder='you@domain.com' required on-enter='action == "password/forgot" && loginForm.$valid && auth(action, user_info)')
+                    .details-row(ng-show='action != "password/forgot"')
+                        +lbl('Password:')
+                        .col-xs-6.col-sm-7
+                            input#user_password.form-control(enter-focus-next='user_confirm' type='password' ng-model='user_info.password' placeholder='Password' ng-required='action != "password/forgot"' on-enter='action == "login" && loginForm.$valid && auth(action, user_info)')
+                    .details-row(ng-if='action == "register"')
+                        +lbl('Confirm:')
+                        .col-xs-6.col-sm-7
+                            input#user_confirm.form-control(type='password' ng-model='user_info.confirm' match='user_info.password' placeholder='Confirm password' ng-required='action == "register"' on-enter='loginForm.$valid && auth(action, user_info)')
+        .col-sm-6.col-sm-offset-3
+            .col-xs-10.col-sm-10.col-sm-offset-1
+                .login-footer(ng-show='action == "register"')
+                    a.labelField(ng-click='action = "password/forgot"' on-click-focus='user_email') Forgot password?
+                    a.labelLogin(ng-click='action = "login"' on-click-focus='user_email') Log In
+                    button#signup.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Sign Up
+            .col-xs-10.col-sm-10.col-sm-offset-1
+                .login-footer(ng-show='action == "password/forgot"')
+                    a.labelField(ng-click='action = "login"' on-click-focus='user_email') Log In
+                    button#forgot.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Send it to me
+            .col-xs-10.col-sm-10.col-sm-offset-1
+                .login-footer(ng-show='action == "login"')
+                    a.labelField(ng-click='action = "password/forgot"' on-click-focus='user_email') Forgot password?
+                    a.labelLogin(ng-click='action = "register"' on-click-focus='user_name') Sign Up
+                    button#login.btn.btn-primary(ng-click='auth(action, user_info)' ng-disabled='loginForm.$invalid') Log In
 


[3/3] ignite git commit: IGNITE-843 Tweak screens callouts.

Posted by ak...@apache.org.
IGNITE-843 Tweak screens callouts.


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

Branch: refs/heads/ignite-843
Commit: 91c38aa42335180e0c9a302433d26bd98058bca0
Parents: 772d968
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Wed Sep 23 18:11:25 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Sep 23 18:11:25 2015 +0700

----------------------------------------------------------------------
 .../main/js/controllers/summary-controller.js   | 60 +++++++++++---------
 .../src/main/js/views/configuration/caches.jade |  2 +-
 .../main/js/views/configuration/clusters.jade   |  2 +-
 .../main/js/views/configuration/metadata.jade   |  2 +-
 .../main/js/views/configuration/summary.jade    |  4 +-
 .../src/main/js/views/includes/controls.jade    |  2 +-
 .../src/main/js/views/sql/sql.jade              | 40 ++++++-------
 7 files changed, 59 insertions(+), 53 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/controllers/summary-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/summary-controller.js b/modules/control-center-web/src/main/js/controllers/summary-controller.js
index 08c8f0e..b91ed09 100644
--- a/modules/control-center-web/src/main/js/controllers/summary-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/summary-controller.js
@@ -16,7 +16,7 @@
  */
 
 // Controller for Summary screen.
-controlCenterModule.controller('summaryController', ['$scope', '$http', '$common', function ($scope, $http, $common) {
+controlCenterModule.controller('summaryController', ['$scope', '$http', '$common', '$loading', function ($scope, $http, $common, $loading) {
     $scope.joinTip = $common.joinTip;
     $scope.getModel = $common.getModel;
 
@@ -161,38 +161,44 @@ controlCenterModule.controller('summaryController', ['$scope', '$http', '$common
         return $common.isDefined($generatorJava.metadatas) && $generatorJava.metadatas.length > 0;
     };
 
-    $http.post('clusters/list').success(function (data) {
-        $scope.clusters = data.clusters;
+    $loading.start('loadingSummaryScreen');
 
-        if ($scope.clusters.length > 0) {
-            // Populate clusters with caches.
-            _.forEach($scope.clusters, function (cluster) {
-                cluster.caches = _.filter(data.caches, function (cache) {
-                    return _.contains(cluster.caches, cache._id);
+    $http.post('clusters/list')
+        .success(function (data) {
+            $scope.clusters = data.clusters;
+
+            if ($scope.clusters.length > 0) {
+                // Populate clusters with caches.
+                _.forEach($scope.clusters, function (cluster) {
+                    cluster.caches = _.filter(data.caches, function (cache) {
+                        return _.contains(cluster.caches, cache._id);
+                    });
                 });
-            });
 
-            var restoredId = sessionStorage.summarySelectedId;
+                var restoredId = sessionStorage.summarySelectedId;
 
-            var selectIdx = 0;
+                var selectIdx = 0;
 
-            if (restoredId) {
-                var idx = _.findIndex($scope.clusters, function (cluster) {
-                    return cluster._id == restoredId;
-                });
+                if (restoredId) {
+                    var idx = _.findIndex($scope.clusters, function (cluster) {
+                        return cluster._id == restoredId;
+                    });
 
-                if (idx >= 0)
-                    selectIdx = idx;
-                else
-                    delete sessionStorage.summarySelectedId;
-            }
+                    if (idx >= 0)
+                        selectIdx = idx;
+                    else
+                        delete sessionStorage.summarySelectedId;
+                }
 
-            $scope.selectItem($scope.clusters[selectIdx]);
+                $scope.selectItem($scope.clusters[selectIdx]);
 
-            $scope.$watch('selectedItem', function (val) {
-                if (val)
-                    sessionStorage.summarySelectedId = val._id;
-            }, true);
-        }
-    });
+                $scope.$watch('selectedItem', function (val) {
+                    if (val)
+                        sessionStorage.summarySelectedId = val._id;
+                }, true);
+            }
+        })
+        .finally(function () {
+            $loading.finish('loadingSummaryScreen');
+        });
 }]);

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/configuration/caches.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/caches.jade b/modules/control-center-web/src/main/js/views/configuration/caches.jade
index 7631d5a..a7721a5 100644
--- a/modules/control-center-web/src/main/js/views/configuration/caches.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/caches.jade
@@ -24,11 +24,11 @@ include ../includes/controls
 block content
     .docs-header
         h1 Create and Configure Ignite Caches
-        hr
     .docs-body(ng-controller='cachesController')
         div(dw-loading='loadingCachesScreen' dw-loading-options='{text: "Loading caches screen..."}')
             div(ng-if='ui.ready')
                 +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
+                hr
                 +main-table('Caches:', 'caches', 'cacheName', 'selectItem(row)', '{{$index + 1}}) {{row.name}}, {{row.cacheMode | displayValue:cacheModes:"Cache mode not set"}}, {{row.atomicityMode | displayValue:atomicities:"Cache atomicity not set"}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new caches')

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/configuration/clusters.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/clusters.jade b/modules/control-center-web/src/main/js/views/configuration/clusters.jade
index 8cbb5a5..c503b6d 100644
--- a/modules/control-center-web/src/main/js/views/configuration/clusters.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/clusters.jade
@@ -24,11 +24,11 @@ include ../includes/controls
 block content
     .docs-header
         h1 Create and Configure Ignite Clusters
-        hr
     .docs-body(ng-controller='clustersController')
         div(dw-loading='loadingClustersScreen' dw-loading-options='{text: "Loading clusters screen..."}')
             div(ng-if='ui.ready')
                 +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
+                hr
                 +main-table('Clusters:', 'clusters', 'clusterName', 'selectItem(row)', '{{$index + 1}}) {{row.name}}, {{row.discovery.kind | displayValue:discoveries:"Discovery not set"}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new cluster')

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/configuration/metadata.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/metadata.jade b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
index 3403e33..cff8aef 100644
--- a/modules/control-center-web/src/main/js/views/configuration/metadata.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
@@ -24,11 +24,11 @@ include ../includes/controls
 block content
     .docs-header
         h1 Create and Configure Cache Type Metadata
-        hr
     .docs-body(ng-controller='metadataController')
         div(dw-loading='loadingMetadataScreen' dw-loading-options='{text: "Loading metadata screen..."}')
             div(ng-if='ui.ready')
                 +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
+                hr
                 +main-table('Types metadata:', 'metadatas', 'metadataName', 'selectItem(row)', '{{$index + 1}}) {{row.valueType}}')
                 .padding-top-dflt(bs-affix)
                     .panel-tip-container(data-placement='bottom' bs-tooltip data-title='Create new metadata')

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/configuration/summary.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/summary.jade b/modules/control-center-web/src/main/js/views/configuration/summary.jade
index 7bb7198..1336efc 100644
--- a/modules/control-center-web/src/main/js/views/configuration/summary.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/summary.jade
@@ -39,9 +39,9 @@ mixin btn-download(side)
 block content
     .docs-header
         h1 Configurations Summary
-        hr
-    .docs-body(ng-controller='summaryController')
+    .docs-body(dw-loading='loadingSummaryScreen' dw-loading-options='{text: "Loading summary screen..."}' ng-controller='summaryController')
         +block-callout('{{screenTip.workflowTitle}}', 'screenTip.workflowContent', '{{screenTip.whatsNextTitle}}', 'screenTip.whatsNextContent')
+        hr
         .padding-dflt(ng-if='clusters.length == 0')
             | You have no clusters configured. Please configure them &nbsp;
             a(href='clusters') here.

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/includes/controls.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/includes/controls.jade b/modules/control-center-web/src/main/js/views/includes/controls.jade
index e273454..3c2edd1 100644
--- a/modules/control-center-web/src/main/js/views/includes/controls.jade
+++ b/modules/control-center-web/src/main/js/views/includes/controls.jade
@@ -443,7 +443,7 @@ mixin form-row-custom(lblClasses, fieldClasses, dataSource)
                                         input#newGroupName.form-control(type='text' ng-model='field.newGroupName' placeholder='Group name' on-enter='tableGroupSaveVisible(field, -1) && tableGroupSave(field, -1)' on-escape='tableReset()')
 
 mixin main-table(title,  rows, focusId, click, rowTemplate)
-    .padding-dflt(ng-show='#{rows} && #{rows}.length > 0')
+    .padding-bottom-dflt(ng-show='#{rows} && #{rows}.length > 0')
         table.links(st-set-filter='#{rows}Search' st-table='displayedRows' st-safe-src='#{rows}')
             thead
                 tr

http://git-wip-us.apache.org/repos/asf/ignite/blob/91c38aa4/modules/control-center-web/src/main/js/views/sql/sql.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/sql/sql.jade b/modules/control-center-web/src/main/js/views/sql/sql.jade
index 25ad779..14f3a02 100644
--- a/modules/control-center-web/src/main/js/views/sql/sql.jade
+++ b/modules/control-center-web/src/main/js/views/sql/sql.jade
@@ -31,26 +31,6 @@ mixin btn-toolbar-data(btn, kind, tip)
     i.btn.btn-default.fa(class=btn ng-click='setResult(paragraph, "#{kind}")' ng-class='{active: resultEq(paragraph, "#{kind}")}' bs-tooltip='' data-title=tip data-trigger='hover' data-placement='bottom')
 
 block container
-    .block-callout-parent
-        table
-            tbody
-                tr
-                    td.block-callout-left(width='50%')
-                        i.fa.fa-check-square.block-callout-header-left
-                        label.block-callout-header-left With SQL Notebook you can:
-                        ul
-                            li Create any number of paragraphs
-                            li Execute and explain SQL queries
-                            li Execute scan queries
-                            li View data in tabular form and as charts
-                    td.block-callout-right(width='50%')
-                        i.fa.fa-check-square.block-callout-header-right
-                        label.block-callout-header-right To execute SQL you need:
-                        ul
-                            li Start Apache Ignite Cluster with caches
-                            li Populate caches with data
-                            li Start Apache Ignite Web Agent
-                            li Create paragraph, enter some SQL and execute it
     .row
         .col-sm-12(ng-init='noteId = "#{noteId}"')
             .docs-content(ng-controller='sqlController' )
@@ -66,6 +46,26 @@ block container
                             i.tipLabel.fa.fa-floppy-o(ng-show='notebook.editName' ng-click='renameNotebook(notebook.editName)' bs-tooltip data-title='Save notebook name' data-trigger='hover')
                         .pull-right
                             +btn-toolbar('fa-plus', 'addParagraph()', 'Add new query')
+                    .block-callout-parent
+                        table
+                            tbody
+                                tr
+                                    td.block-callout-left(width='50%')
+                                        i.fa.fa-check-square.block-callout-header-left
+                                        label.block-callout-header-left With SQL Notebook you can:
+                                        ul
+                                            li Create any number of queries
+                                            li Execute and explain SQL queries
+                                            li Execute scan queries
+                                            li View data in tabular form and as charts
+                                    td.block-callout-right(width='50%')
+                                        i.fa.fa-check-square.block-callout-header-right
+                                        label.block-callout-header-right To execute SQL you need:
+                                        ul
+                                            li Start Apache Ignite Cluster with caches
+                                            li Populate caches with data
+                                            li Start Apache Ignite Web Agent
+                                            li Create paragraph, enter some SQL and execute it
                     hr
                 .docs-body.paragraphs
                     .panel-group(bs-collapse ng-model='notebook.expandedParagraphs' data-allow-multiple='true' data-start-collapsed='false')


[2/3] ignite git commit: IGNITE-843 WIP Description of SQL screen.

Posted by ak...@apache.org.
IGNITE-843 WIP Description of SQL screen.


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

Branch: refs/heads/ignite-843
Commit: 772d96853b3b0e94f2c5259fc9260393f96c1633
Parents: 763cfc2
Author: vsisko <vs...@gridgain.com>
Authored: Wed Sep 23 18:11:04 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Sep 23 18:11:04 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js                 | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/772d9685/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index f20c279..6df4c7f 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -1833,11 +1833,11 @@ controlCenterModule.controller('activeLink', [
 controlCenterModule.controller('auth', [
     '$scope', '$modal', '$http', '$window', '$common', '$focus',
     function ($scope, $modal, $http, $window, $common, $focus) {
-        $scope.loginAction = 'login';
+        $scope.action = 'login';
 
         $scope.userDropdown = [{text: 'Profile', href: '/profile'}];
 
-        $focus('login_user_email');
+        $focus('user_email');
 
         if (!$scope.becomeUsed) {
             if ($scope.user && $scope.user.admin)
@@ -1859,10 +1859,8 @@ controlCenterModule.controller('auth', [
                     if (status == 403) {
                         $window.location = '/password/reset';
                     }
-                    else if (action == 'login')
-                        $common.showPopoverMessage(undefined, undefined, 'login_user_email', err);
                     else
-                        $common.showPopoverMessage(undefined, undefined, 'signup_user_email', err);
+                        $common.showPopoverMessage(undefined, undefined, 'user_email', err);
                 });
         };