mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
fix(app): persisted volume fixes [EE-6554] (#10975)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
fa63432695
commit
59f642ea56
5 changed files with 24 additions and 13 deletions
|
@ -372,6 +372,10 @@ class KubernetesCreateApplicationController {
|
|||
|
||||
onChangePersistedFolder(values) {
|
||||
this.$scope.$evalAsync(() => {
|
||||
this.state.persistedFoldersUseExistingVolumes = values.some((pf) => pf.existingVolume);
|
||||
if (!this.state.isEdit && this.state.persistedFoldersUseExistingVolumes) {
|
||||
this.formValues.DataAccessPolicy = this.ApplicationDataAccessPolicies.Shared;
|
||||
}
|
||||
this.formValues.PersistedFolders = values;
|
||||
if (values && values.length && !this.supportGlobalDeployment()) {
|
||||
this.onChangeDeploymentType(this.ApplicationDeploymentTypes.Replicated);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue