1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

fix(app): various persisted folder fixes [EE-6235] (#10963)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-17 08:31:22 +13:00 committed by GitHub
parent 7a04d1d4ea
commit 95474b7dc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 84 additions and 78 deletions

View file

@ -16,7 +16,7 @@ import { ApplicationFormValues } from '../../types';
import { ExistingVolume, PersistedFolderFormValue } from './types';
type Props = {
initialValues: PersistedFolderFormValue[];
initialValues?: PersistedFolderFormValue[];
item: PersistedFolderFormValue;
onChange: (value: PersistedFolderFormValue) => void;
error: ItemError<PersistedFolderFormValue>;
@ -220,7 +220,6 @@ export function PersistedFolderItem({
function isToggleVolumeTypeVisible() {
return (
!(isEdit && isExistingPersistedFolder()) && // if it's not an edit of an existing persisted folder
applicationValues.ApplicationType !== 'StatefulSet' && // and if it's not a statefulset
applicationValues.Containers.length <= 1 // and if there is only one container);
);
}