Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53FD8200C45 for ; Tue, 14 Mar 2017 01:54:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 527B3160B85; Tue, 14 Mar 2017 00:54:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9B4A3160B5D for ; Tue, 14 Mar 2017 01:54:00 +0100 (CET) Received: (qmail 81936 invoked by uid 500); 14 Mar 2017 00:53:59 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 81927 invoked by uid 99); 14 Mar 2017 00:53:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 00:53:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A635BDFBD9; Tue, 14 Mar 2017 00:53:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jaimin@apache.org To: commits@ambari.apache.org Message-Id: <0cdeb4135ff446bb836faf67f634b884@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-20432. ambari-web shows redundant configuration for "Number of nodes used by Hive's LLAP". (jaimin) Date: Tue, 14 Mar 2017 00:53:59 +0000 (UTC) archived-at: Tue, 14 Mar 2017 00:54:01 -0000 Repository: ambari Updated Branches: refs/heads/branch-2.5 e6e56e8ba -> 3a1afd8c8 AMBARI-20432. ambari-web shows redundant configuration for "Number of nodes used by Hive's LLAP". (jaimin) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3a1afd8c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3a1afd8c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3a1afd8c Branch: refs/heads/branch-2.5 Commit: 3a1afd8c8ee462316888b3171c58fb0a902de98b Parents: e6e56e8 Author: Jaimin Jetly Authored: Mon Mar 13 17:52:44 2017 -0700 Committer: Jaimin Jetly Committed: Mon Mar 13 17:53:45 2017 -0700 ---------------------------------------------------------------------- .../mixins/common/configs/widgets/unique/num_llap_nodes.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/3a1afd8c/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js b/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js index 781a40a..e3e7efe 100644 --- a/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js +++ b/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js @@ -35,6 +35,10 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({ * @type {boolean} */ doNotShowWidget: function () { + var self = this; + Em.run.next(function () { + self.handleReadOnlyAttribute(); + }); if (this.get('readOnly')) { return false; } @@ -42,12 +46,12 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({ }.property('isPropertyUndefined', 'config.showAsTextBox', 'readOnly'), handleReadOnlyAttribute: function () { - var readOnly = this.get('readOnly'); + var readOnly = this.get('readOnly') || false; this.set('disabled', readOnly); this.set('supportSwitchToTextBox', !readOnly); var action = readOnly ? 'disable' : 'enable'; this.toggleSlider(action); - }.observes('readOnly'), + }, toggleWidgetView: function() { this._super();