fix(k8s) Adding a Kube app does not allow Global to be set after removing persisted folder EE-563 (#5143)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
Testing-merge-of-161-446-447
cong meng 2021-06-15 15:53:31 +12:00 committed by GitHub
parent d7bc4f9b96
commit 296ecc5960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ class KubernetesCreateApplicationController {
const hasRWOOnly = KubernetesApplicationHelper.hasRWOOnly(this.formValues);
const isIsolated = this.formValues.DataAccessPolicy === this.ApplicationDataAccessPolicies.ISOLATED;
if ((hasFolders && hasRWOOnly) || isIsolated) {
if (hasFolders && (hasRWOOnly || isIsolated)) {
return false;
}
return true;