1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

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>
This commit is contained in:
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

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;