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

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/3937/head
cong meng 2020-12-10 14:21:43 +13:00 committed by GitHub
parent aa5277de2e
commit 865c8d899b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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) {