fix(kubernetes): validation for advance deployments [EE-6280] (#10574)

pull/10580/head
Prabhat Khera 1 year ago committed by GitHub
parent b6f9777bbf
commit c8bdf21d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -182,9 +182,8 @@ class KubernetesDeployController {
}
disableDeploy() {
const isWebEditorInvalid =
this.state.BuildMethod === KubernetesDeployBuildMethods.WEB_EDITOR && _.isEmpty(this.formValues.EditorContent) && _.isEmpty(this.formValues.Namespace);
const isURLFormInvalid = this.state.BuildMethod == KubernetesDeployBuildMethods.WEB_EDITOR.URL && _.isEmpty(this.formValues.ManifestURL);
const isWebEditorInvalid = this.state.BuildMethod === KubernetesDeployBuildMethods.WEB_EDITOR && _.isEmpty(this.formValues.EditorContent);
const isURLFormInvalid = this.state.BuildMethod == KubernetesDeployBuildMethods.URL && _.isEmpty(this.formValues.ManifestURL);
const isNamespaceInvalid = _.isEmpty(this.formValues.Namespace);
return isWebEditorInvalid || isURLFormInvalid || this.state.actionInProgress || isNamespaceInvalid;

Loading…
Cancel
Save