mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Small refactor
This commit is contained in:
parent
0b47abc009
commit
b0243adc5b
1 changed files with 77 additions and 79 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue