ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-6114 No loading spinner on Add Service Wizard. (atkach)
Date Fri, 13 Jun 2014 11:27:35 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 749f65889 -> 77f1877c3


AMBARI-6114 No loading spinner on Add Service Wizard. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/77f1877c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/77f1877c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/77f1877c

Branch: refs/heads/trunk
Commit: 77f1877c3530d0fc6ebc00991790d433c18e1424
Parents: 749f658
Author: atkach <atkach@hortonworks.com>
Authored: Fri Jun 13 14:25:27 2014 +0300
Committer: atkach <atkach@hortonworks.com>
Committed: Fri Jun 13 14:25:27 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/templates/main/service/add.hbs | 10 +++++++---
 ambari-web/app/views/main/service/add_view.js |  6 +++++-
 2 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/77f1877c/ambari-web/app/templates/main/service/add.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/add.hbs b/ambari-web/app/templates/main/service/add.hbs
index d1721e7..faecabd 100644
--- a/ambari-web/app/templates/main/service/add.hbs
+++ b/ambari-web/app/templates/main/service/add.hbs
@@ -38,9 +38,13 @@
             </ul>
           </div>
         </div>
-        <div class="wizard-content well span9">
-          {{outlet}}
-        </div>
+          <div class="wizard-content well span9">
+            {{#if view.isLoaded}}
+              {{outlet}}
+            {{else}}
+                <div class="spinner"></div>
+            {{/if}}
+          </div>
       </div>
     </div>
   </div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/77f1877c/ambari-web/app/views/main/service/add_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/add_view.js b/ambari-web/app/views/main/service/add_view.js
index f8a1479..82042db 100644
--- a/ambari-web/app/views/main/service/add_view.js
+++ b/ambari-web/app/views/main/service/add_view.js
@@ -23,6 +23,8 @@ App.AddServiceView = Em.View.extend({
 
   templateName: require('templates/main/service/add'),
 
+  isLoaded: false,
+
   isStep1Disabled: function () {
     return this.isStepDisabled(1);
   }.property('controller.isStepDisabled.@each.value').cacheable(),
@@ -55,11 +57,13 @@ App.AddServiceView = Em.View.extend({
     return this.get('controller.isStepDisabled').findProperty('step', index).get('value');
   },
 
-
   willInsertElement: function () {
     this.loadHosts();
   },
 
+  /**
+   * send request to fetch all hosts information
+   */
   loadHosts: function () {
     App.ajax.send({
       name: 'hosts.confirmed',


Mime
View raw message