mirror of https://github.com/rancher/ui.git
Merge pull request #3226 from loganhz/gke-version
Fix gke k8s version issue
This commit is contained in:
commit
075becbc3d
|
|
@ -304,12 +304,13 @@ export default Component.extend(ClusterDriver, {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
versionChanged: observer('config.masterVersion', 'versionChoices.[]', function() {
|
versionChanged: observer('config.masterVersion', 'versionChoices.[]', function() {
|
||||||
if (this.saving) {
|
const current = get(this, 'config.masterVersion');
|
||||||
|
|
||||||
|
if (this.saving && current) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const versions = get(this, 'versionChoices') || [];
|
const versions = get(this, 'versionChoices') || [];
|
||||||
const current = get(this, 'config.masterVersion');
|
|
||||||
const exists = versions[versions.indexOf(current)];
|
const exists = versions[versions.indexOf(current)];
|
||||||
|
|
||||||
if ( !exists ) {
|
if ( !exists ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue