ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [26/50] [abbrv] ambari git commit: AMBARI-20806. Upgrade Pause button should not show when the Upgrade is already Paused (alexantonenko)
Date Mon, 24 Apr 2017 12:01:41 GMT
AMBARI-20806. Upgrade Pause button should not show when the Upgrade is already Paused (alexantonenko)


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

Branch: refs/heads/branch-3.0-perf
Commit: 8322ed571e2b9b235154dea7393593b6f8401370
Parents: c306a2b
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Apr 20 19:02:05 2017 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Apr 24 14:59:56 2017 +0300

----------------------------------------------------------------------
 .../admin/stack_upgrade/stack_upgrade_wizard.hbs    | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8322ed57/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
index b2e8991..6fceeb1 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
@@ -39,13 +39,15 @@
     {{#if view.isLoaded}}
       <div>
         <div class="row">
-          {{#if isDowngrade}}
-            <button
-              class="btn btn-default" {{action confirmPauseDowngrade target="view"}}>{{t
admin.stackUpgrade.pauseDowngrade}}</button>
-          {{else}}
-            <button
-              class="btn btn-default" {{action confirmPauseUpgrade target="view"}}>{{t
admin.stackUpgrade.pauseUpgrade}}</button>
-          {{/if}}
+          {{#unless App.upgradeSuspended}}
+              {{#if isDowngrade}}
+                <button
+                  class="btn btn-default" {{action confirmPauseDowngrade target="view"}}>{{t
admin.stackUpgrade.pauseDowngrade}}</button>
+              {{else}}
+                <button
+                  class="btn btn-default" {{action confirmPauseUpgrade target="view"}}>{{t
admin.stackUpgrade.pauseUpgrade}}</button>
+              {{/if}}
+          {{/unless}}
         </div>
         {{#if view.runningItem}}
           <div class="panel panel-default details-box row">


Mime
View raw message