Rename role 'kvm-virt' to 'virt' in UI

Related to blueprint reduced-footprint

Change-Id: I1f665ff3aa5ccbe712ac2646b3af32cf1c4cc365
This commit is contained in:
Vitaly Kramskikh 2015-07-15 18:15:21 +03:00
parent cc5ce2d79e
commit c47975a56e
2 changed files with 3 additions and 3 deletions

View File

@ -398,7 +398,7 @@ function($, _, i18n, Backbone, React, utils, models, dispatcher, componentMixins
stoppableTask = !_.contains(['stop_deployment', 'reset_environment', 'update', 'spawn_vms'], taskName),
isDeploymentImpossible = cluster.get('release').get('state') == 'unavailable' || (!cluster.get('nodes').hasChanges() && !cluster.needsRedeployment()),
isVMsProvisioningAvailable = cluster.get('nodes').any(function(node) {
return node.get('pending_addition') && node.hasRole('kvm-virt');
return node.get('pending_addition') && node.hasRole('virt');
});
return (
<div className='col-xs-6 col-md-3'>

View File

@ -437,7 +437,7 @@ function($, _, i18n, Backbone, React, utils, models, dispatcher, controls, compo
},
renderBody: function() {
var vmsCount = this.props.cluster.get('nodes').where(function(node) {
return node.get('pending_addition') && node.hasRole('kvm-virt');
return node.get('pending_addition') && node.hasRole('virt');
}).length;
return i18n('dialog.provision_vms.text', {count: vmsCount});
},
@ -733,7 +733,7 @@ function($, _, i18n, Backbone, React, utils, models, dispatcher, controls, compo
componentDidMount: function() {
this.assignAccordionEvents();
this.setDialogTitle();
if (this.props.node.get('pending_addition') && this.props.node.hasRole('kvm-virt')) {
if (this.props.node.get('pending_addition') && this.props.node.hasRole('virt')) {
var VMsConfModel = new models.BaseModel();
VMsConfModel.url = _.result(this.props.node, 'url') + '/vms_conf';
this.setProps({VMsConfModel: VMsConfModel});