Disable Savanna & Murano for RHOS in wizard
Change-Id: Id595541efcc4bd763f549d86622345fe4584c4a7
This commit is contained in:
parent
62cf71f3f4
commit
951a982347
@ -452,6 +452,7 @@ function(require, utils, models, simpleMessageTemplate, createClusterWizardTempl
|
||||
|
||||
clusterWizardPanes.ClusterAdditionalServicesPane = views.WizardPane.extend({
|
||||
title: 'Additional Services',
|
||||
releaseDependent: true,
|
||||
template: _.template(clusterAdditionalServicesPaneTemplate),
|
||||
beforeSettingsSaving: function(settings) {
|
||||
try {
|
||||
@ -465,6 +466,15 @@ function(require, utils, models, simpleMessageTemplate, createClusterWizardTempl
|
||||
return (new $.Deferred()).reject();
|
||||
}
|
||||
return (new $.Deferred()).resolve();
|
||||
},
|
||||
render: function() {
|
||||
var release = this.wizard.findPane(clusterWizardPanes.ClusterNameAndReleasePane).release;
|
||||
var disabled = !release || release.get('operating_system') == 'RHEL'; // no Savanna & Murano for RHOS for now
|
||||
this.$el.html(this.template({disabled: disabled, release: release}));
|
||||
if (disabled) {
|
||||
this.$('input[type=checkbox]').prop('disabled', true);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
<% if (disabled && release) { %>
|
||||
<div class="alert" style="margin-bottom: 10px">Additional services are not available in <%- release.get('name') %></div>
|
||||
<% } %>
|
||||
<form class="form-horizontal" style="margin:0" onsubmit="return false">
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
|
Loading…
Reference in New Issue
Block a user