Repository: ambari Updated Branches: refs/heads/trunk 9c6ab0be9 -> f4dae12eb
AMBARI-17141 "Settings" button shown to cluster administrator. (atkach) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f4dae12e Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f4dae12e Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f4dae12e Branch: refs/heads/trunk Commit: f4dae12ebe27035c478f884a4d15012a12c0dd0d Parents: 9c6ab0b Author: Andrii Tkach <[email protected]> Authored: Thu Jun 9 13:43:27 2016 +0300 Committer: Andrii Tkach <[email protected]> Committed: Thu Jun 9 16:50:40 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/templates/application.hbs | 2 +- ambari-web/app/templates/common/modal_popup.hbs | 8 ++++---- ambari-web/app/utils/host_progress_popup.js | 7 ------- 3 files changed, 5 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/f4dae12e/ambari-web/app/templates/application.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/application.hbs b/ambari-web/app/templates/application.hbs index 9c17223..93f0681 100644 --- a/ambari-web/app/templates/application.hbs +++ b/ambari-web/app/templates/application.hbs @@ -81,7 +81,7 @@ {{/if}} {{/if}} {{#if isExistingClusterDataLoaded}} - {{#isAuthorized "CLUSTER.UPGRADE_DOWNGRADE_STACK"}} + {{#isAuthorized "AMBARI.MANAGE_SETTINGS"}} <li><a href="" {{action showSettingsPopup target="App.router.userSettingsController"}}>{{t app.settings}}</a></li> {{/isAuthorized}} {{/if}} http://git-wip-us.apache.org/repos/asf/ambari/blob/f4dae12e/ambari-web/app/templates/common/modal_popup.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/common/modal_popup.hbs b/ambari-web/app/templates/common/modal_popup.hbs index e4537e9..2e6d13e 100644 --- a/ambari-web/app/templates/common/modal_popup.hbs +++ b/ambari-web/app/templates/common/modal_popup.hbs @@ -47,10 +47,10 @@ {{view view.footerClass}} {{else}} <div class="modal-footer"> - {{#if view.hasFooterCheckbox}} - <label id="footer-checkbox">{{view Ember.Checkbox classNames="checkbox" checkedBinding="view.isNotShowBgChecked"}} - {{t app.settings.notShowBgOperations}}</label> - {{/if}} + {{#isAuthorized "AMBARI.MANAGE_SETTINGS"}} + <label id="footer-checkbox">{{view Ember.Checkbox classNames="checkbox" checkedBinding="view.isNotShowBgChecked"}} + {{t app.settings.notShowBgOperations}}</label> + {{/isAuthorized}} {{#if view.third}} <button {{bindAttr disabled="view.disableThird" class=":btn view.thirdClass"}} {{action onThird target="view"}}>{{view.third}}</button> {{/if}} http://git-wip-us.apache.org/repos/asf/ambari/blob/f4dae12e/ambari-web/app/utils/host_progress_popup.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/host_progress_popup.js b/ambari-web/app/utils/host_progress_popup.js index 20ea220..6e0dd2f 100644 --- a/ambari-web/app/utils/host_progress_popup.js +++ b/ambari-web/app/utils/host_progress_popup.js @@ -851,13 +851,6 @@ App.HostPopup = Em.Object.create({ classNames: ['sixty-percent-width-modal', 'host-progress-popup', 'full-height-modal'], /** - * for the checkbox: do not show this dialog again - * - * @type {bool} - */ - hasFooterCheckbox: true, - - /** * Auto-display BG-popup * * @type {bool}
