mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +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
|
@ -1,6 +1,8 @@
|
|||
import { Box, Boxes } from 'lucide-react';
|
||||
|
||||
import { BoxSelector, BoxSelectorOption } from '@@/BoxSelector';
|
||||
import { FormSection } from '@@/form-components/FormSection';
|
||||
import { TextTip } from '@@/Tip/TextTip';
|
||||
|
||||
import { AppDataAccessPolicy } from '../types';
|
||||
|
||||
|
@ -20,13 +22,18 @@ export function DataAccessPolicyFormSection({
|
|||
const options = getOptions(value, isEdit, persistedFoldersUseExistingVolumes);
|
||||
|
||||
return (
|
||||
<BoxSelector
|
||||
slim
|
||||
options={options}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
radioName="data_access_policy"
|
||||
/>
|
||||
<FormSection title="Data access policy" titleSize="sm">
|
||||
<TextTip color="blue">
|
||||
Specify how the data will be used across instances.
|
||||
</TextTip>
|
||||
<BoxSelector
|
||||
slim
|
||||
options={options}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
radioName="data_access_policy"
|
||||
/>
|
||||
</FormSection>
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -65,7 +72,7 @@ function getOptions(
|
|||
}
|
||||
return '';
|
||||
},
|
||||
disabled: () => persistedFoldersUseExistingVolumes,
|
||||
disabled: () => isEdit && value !== 'Shared',
|
||||
},
|
||||
] as const;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue