mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update notifications page ui
This commit is contained in:
parent
7f42b4e8b6
commit
ec1f016d5b
1 changed files with 18 additions and 20 deletions
|
@ -1,23 +1,13 @@
|
||||||
|
import Alert from '@mui/material/Alert/Alert';
|
||||||
|
import Box from '@mui/material/Box/Box';
|
||||||
|
import Button from '@mui/material/Button/Button';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import Page from 'components/Page';
|
import Page from 'components/Page';
|
||||||
import globalize from 'scripts/globalize';
|
import globalize from 'scripts/globalize';
|
||||||
|
|
||||||
const PluginLink = () => (
|
const NotificationsPage = () => (
|
||||||
<div
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: `<a
|
|
||||||
is='emby-linkbutton'
|
|
||||||
class='button-link'
|
|
||||||
href='#/dashboard/plugins/add?name=Webhook&guid=71552a5a5c5c4350a2aeebe451a30173'
|
|
||||||
>
|
|
||||||
${globalize.translate('GetThePlugin')}
|
|
||||||
</a>`
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
|
|
||||||
const Notifications = () => (
|
|
||||||
<Page
|
<Page
|
||||||
id='notificationSettingPage'
|
id='notificationSettingPage'
|
||||||
title={globalize.translate('Notifications')}
|
title={globalize.translate('Notifications')}
|
||||||
|
@ -25,12 +15,20 @@ const Notifications = () => (
|
||||||
>
|
>
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<h2>{globalize.translate('Notifications')}</h2>
|
<h2>{globalize.translate('Notifications')}</h2>
|
||||||
<p>
|
|
||||||
{globalize.translate('NotificationsMovedMessage')}
|
<Alert severity='info'>
|
||||||
</p>
|
<Box sx={{ marginBottom: 2 }}>
|
||||||
<PluginLink />
|
{globalize.translate('NotificationsMovedMessage')}
|
||||||
|
</Box>
|
||||||
|
<Button
|
||||||
|
component={Link}
|
||||||
|
to='/dashboard/plugins/add?name=Webhook&guid=71552a5a5c5c4350a2aeebe451a30173'
|
||||||
|
>
|
||||||
|
{globalize.translate('GetThePlugin')}
|
||||||
|
</Button>
|
||||||
|
</Alert>
|
||||||
</div>
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Notifications;
|
export default NotificationsPage;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue