1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Small refactor

This commit is contained in:
viown 2025-02-25 16:57:32 +03:00
parent 0b47abc009
commit b0243adc5b

View file

@ -74,12 +74,11 @@ export const Component = () => {
className='mainAnimatedPage type-interior' className='mainAnimatedPage type-interior'
> >
<Box className='content-primary'> <Box className='content-primary'>
<Form method='POST'>
<Stack spacing={3}>
{isConfigError || isNamedConfigError ? ( {isConfigError || isNamedConfigError ? (
<Alert severity='error'>{globalize.translate('DisplayLoadError')}</Alert> <Alert severity='error'>{globalize.translate('DisplayLoadError')}</Alert>
) : ( ) : (
<> <Form method='POST'>
<Stack spacing={3}>
{!isSubmitting && actionData?.isSaved && ( {!isSubmitting && actionData?.isSaved && (
<Alert severity='success'> <Alert severity='success'>
{globalize.translate('SettingsSaved')} {globalize.translate('SettingsSaved')}
@ -154,10 +153,9 @@ export const Component = () => {
> >
{globalize.translate('Save')} {globalize.translate('Save')}
</Button> </Button>
</>
)}
</Stack> </Stack>
</Form> </Form>
)}
</Box> </Box>
</Page> </Page>
); );