ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [1/3] ambari git commit: AMBARI-17401. Service actions are available via firepath even if not visible on UI (RBAC) (alexantonenko)
Date Thu, 23 Jun 2016 12:45:19 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 b4d85b3b1 -> cce492169


AMBARI-17401. Service actions are available via firepath even if not visible on UI (RBAC)
(alexantonenko)


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

Branch: refs/heads/branch-2.4
Commit: cce492169a0dfef421d2c9d0da6b2795db4b8878
Parents: 71cf3c2
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Jun 23 14:31:40 2016 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Thu Jun 23 15:45:12 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/templates/main/service/item.hbs | 36 +++++++++++----------
 1 file changed, 19 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cce49216/ambari-web/app/templates/main/service/item.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/item.hbs b/ambari-web/app/templates/main/service/item.hbs
index c22424b..43fb3dd 100644
--- a/ambari-web/app/templates/main/service/item.hbs
+++ b/ambari-web/app/templates/main/service/item.hbs
@@ -90,23 +90,25 @@
           {{#if view.maintenance.length}}
             <!-- Other service actions -->
             {{#each option in view.maintenance}}
-            <li {{bindAttr class="option.disabled option.isHidden:hidden option.hasSubmenu:dropdown-submenu
option.hasSubmenu:submenu-left"}}>
-              <a {{action "doAction" option target="controller" href=true}} {{bindAttr
data-title="option.tooltip"}} rel="HealthTooltip">
-                  <i {{bindAttr class="option.cssClass"}}></i>
-                  {{option.label}}
-              </a>
-              {{#if option.hasSubmenu}}
-                <div class="dropdown-menu-wrap">
-                  <ul class="dropdown-menu">
-                    {{#each item in option.submenuOptions}}
-                      <li>
-                        <a {{action "doAction" item target="controller" href=true}}>{{item.context.label}}</a>
-                      </li>
-                    {{/each}}
-                  </ul>
-                </div>
-              {{/if}}
-            </li>
+              {{#unless option.isHidden}}
+                <li {{bindAttr class="option.disabled option.hasSubmenu:dropdown-submenu
option.hasSubmenu:submenu-left"}}>
+                  <a {{action "doAction" option target="controller" href=true}} {{bindAttr
data-title="option.tooltip"}} rel="HealthTooltip">
+                      <i {{bindAttr class="option.cssClass"}}></i>
+                      {{option.label}}
+                  </a>
+                  {{#if option.hasSubmenu}}
+                    <div class="dropdown-menu-wrap">
+                      <ul class="dropdown-menu">
+                        {{#each item in option.submenuOptions}}
+                          <li>
+                            <a {{action "doAction" item target="controller" href=true}}>{{item.context.label}}</a>
+                          </li>
+                        {{/each}}
+                      </ul>
+                    </div>
+                  {{/if}}
+                </li>
+              {{/unless}}
             {{/each}}
           {{else}}
             {{view App.SpinnerView classNames="service-button-spinner"}}


Mime
View raw message