fix(frontend): revalidate configuration name when change resource pool (#4553) (#4562)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
cong meng
2020-12-10 14:21:43 +13:00
committed by GitHub
parent aa5277de2e
commit 865c8d899b
@@ -25,6 +25,10 @@ class KubernetesCreateConfigurationController {
this.state.alreadyExist = _.find(filteredConfigurations, (config) => config.Name === this.formValues.Name) !== undefined;
}
onResourcePoolSelectionChange() {
this.onChangeName();
}
isFormValid() {
const uniqueCheck = !this.state.alreadyExist && this.state.isDataValid;
if (this.formValues.IsSimple) {