mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Redesign add plugins page
This commit is contained in:
parent
5936ed10ca
commit
e928a2ff95
26 changed files with 1022 additions and 241 deletions
|
@ -17,18 +17,14 @@ import { useLocation } from 'react-router-dom';
|
|||
import ListItemLink from 'components/ListItemLink';
|
||||
import globalize from 'scripts/globalize';
|
||||
|
||||
const PLUGIN_PATHS = [
|
||||
'/dashboard/plugins',
|
||||
'/dashboard/plugins/catalog',
|
||||
'/dashboard/plugins/repositories',
|
||||
'/dashboard/plugins/add',
|
||||
'/configurationpage'
|
||||
];
|
||||
const isPluginPath = (path: string) => (
|
||||
path.startsWith('/dashboard/plugins')
|
||||
|| path === '/configurationpage'
|
||||
);
|
||||
|
||||
const AdvancedDrawerSection = () => {
|
||||
const location = useLocation();
|
||||
|
||||
const isPluginSectionOpen = PLUGIN_PATHS.includes(location.pathname);
|
||||
const isPluginSectionOpen = isPluginPath(location.pathname);
|
||||
|
||||
return (
|
||||
<List
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue