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'
|
||||
>
|
||||
<Box className='content-primary'>
|
||||
<Form method='POST'>
|
||||
<Stack spacing={3}>
|
||||
{isConfigError || isNamedConfigError ? (
|
||||
<Alert severity='error'>{globalize.translate('DisplayLoadError')}</Alert>
|
||||
) : (
|
||||
<>
|
||||
<Form method='POST'>
|
||||
<Stack spacing={3}>
|
||||
{!isSubmitting && actionData?.isSaved && (
|
||||
<Alert severity='success'>
|
||||
{globalize.translate('SettingsSaved')}
|
||||
|
@ -154,10 +153,9 @@ export const Component = () => {
|
|||
>
|
||||
{globalize.translate('Save')}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</Stack>
|
||||
</Form>
|
||||
)}
|
||||
</Box>
|
||||
</Page>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue