mirror of https://github.com/rancher/ui.git
Merge pull request #4819 from nwmac/fix-percentage-max-workers
Fix issue where we keep adding a % char to the maxWorkersUnavailable field
This commit is contained in:
commit
509ebf7094
|
|
@ -1139,6 +1139,12 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
|
||||||
cluster.clearProvidersExcept(field);
|
cluster.clearProvidersExcept(field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// If validation fails, we stay on the form, so we need to undo the formatting of the max unavailable worker
|
||||||
|
// otherwise we keep adding a '%' to the input field
|
||||||
|
const maxUnavailableWorker = get(this, 'upgradeStrategy.maxUnavailableWorker');
|
||||||
|
|
||||||
|
set(this, 'upgradeStrategy.maxUnavailableWorker', maxUnavailableWorker.replace('%', ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue