|
@@ -23,9 +23,22 @@ App.HighAvailabilityWizardStep4View = Em.View.extend({
|
|
|
|
|
|
templateName: require('templates/main/admin/highAvailability/step4'),
|
|
templateName: require('templates/main/admin/highAvailability/step4'),
|
|
|
|
|
|
|
|
+ didInsertElement: function() {
|
|
|
|
+ this.get('controller').pullCheckPointStatus();
|
|
|
|
+ },
|
|
|
|
+
|
|
step4BodyText: function () {
|
|
step4BodyText: function () {
|
|
var nN = this.get('controller.content.masterComponentHosts').findProperty('isCurNameNode', true);
|
|
var nN = this.get('controller.content.masterComponentHosts').findProperty('isCurNameNode', true);
|
|
return Em.I18n.t('admin.highAvailability.wizard.step4.body').format(this.get('controller.content.hdfsUser'), nN.hostName);
|
|
return Em.I18n.t('admin.highAvailability.wizard.step4.body').format(this.get('controller.content.hdfsUser'), nN.hostName);
|
|
- }.property('controller.content.masterComponentHosts')
|
|
|
|
|
|
+ }.property('controller.content.masterComponentHosts'),
|
|
|
|
+
|
|
|
|
+ nnCheckPointText: function () {
|
|
|
|
+ var curStatus = this.get('controller.isNextEnabled');
|
|
|
|
+ if(curStatus){
|
|
|
|
+ return Em.I18n.t('admin.highAvailability.wizard.step4.ckCreated');
|
|
|
|
+ }else{
|
|
|
|
+ return Em.I18n.t('admin.highAvailability.wizard.step4.ckNotCreated');
|
|
|
|
+ }
|
|
|
|
+ }.property('controller.isNextEnabled')
|
|
|
|
|
|
});
|
|
});
|