Updated Branches: refs/heads/trunk 1cea3394e -> 84f491ca1
AMBARI-3511. Reassign Master: Reusing the wizard has stale values from last iteration of the wizard. (akovalenko) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/84f491ca Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/84f491ca Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/84f491ca Branch: refs/heads/trunk Commit: 84f491ca19017411b4baeba186138302cbeeb5fe Parents: 1cea339 Author: Aleksandr Kovalenko <[email protected]> Authored: Mon Oct 14 19:12:41 2013 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Mon Oct 14 19:12:41 2013 +0300 ---------------------------------------------------------------------- .../app/controllers/main/service/reassign/step4_controller.js | 4 ++-- .../app/controllers/main/service/reassign/step6_controller.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/84f491ca/ambari-web/app/controllers/main/service/reassign/step4_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/reassign/step4_controller.js b/ambari-web/app/controllers/main/service/reassign/step4_controller.js index d49def9..30d4627 100644 --- a/ambari-web/app/controllers/main/service/reassign/step4_controller.js +++ b/ambari-web/app/controllers/main/service/reassign/step4_controller.js @@ -32,9 +32,9 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro loadStep: function () { if (this.get('content.reassign.component_name') === 'NAMENODE' && !App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE')) { - this.get('hostComponents').pushObjects(['NAMENODE', 'ZKFC']); + this.set('hostComponents', ['NAMENODE', 'ZKFC']); } else { - this.get('hostComponents').pushObject(this.get('content.reassign.component_name')); + this.set('hostComponents', [this.get('content.reassign.component_name')]); } this._super(); }, http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/84f491ca/ambari-web/app/controllers/main/service/reassign/step6_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/reassign/step6_controller.js b/ambari-web/app/controllers/main/service/reassign/step6_controller.js index db0ab41..13bd14f 100644 --- a/ambari-web/app/controllers/main/service/reassign/step6_controller.js +++ b/ambari-web/app/controllers/main/service/reassign/step6_controller.js @@ -32,9 +32,9 @@ App.ReassignMasterWizardStep6Controller = App.HighAvailabilityProgressPageContro loadStep: function () { if (this.get('content.reassign.component_name') === 'NAMENODE' && !App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE')) { - this.get('hostComponents').pushObjects(['NAMENODE', 'ZKFC']); + this.set('hostComponents', ['NAMENODE', 'ZKFC']); } else { - this.get('hostComponents').pushObject(this.get('content.reassign.component_name')); + this.set('hostComponents', [this.get('content.reassign.component_name')]); } this._super(); },
