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

Add more public paths to toolbar check

This commit is contained in:
Bill Thornton 2024-05-16 16:58:40 -04:00
parent 1a172bdb1b
commit 37b1d5cbea

View file

@ -18,6 +18,14 @@ interface AppToolbarProps {
onDrawerButtonClick: (event: React.MouseEvent<HTMLElement>) => void
}
const PUBLIC_PATHS = [
'/addserver.html',
'/selectserver.html',
'/login.html',
'/forgotpassword.html',
'/forgotpasswordpin.html'
];
const ExperimentalAppToolbar: FC<AppToolbarProps> = ({
isDrawerAvailable,
isDrawerOpen,
@ -29,7 +37,7 @@ const ExperimentalAppToolbar: FC<AppToolbarProps> = ({
if (location.pathname === '/video') return null;
const isTabsAvailable = isTabPath(location.pathname);
const isPublicPath = location.pathname === '/selectserver.html';
const isPublicPath = PUBLIC_PATHS.includes(location.pathname);
return (
<AppToolbar