= ({
{globalize.translate('RetryWithGlobalSearch')}
)}
diff --git a/src/components/toolbar/AppToolbar.tsx b/src/components/toolbar/AppToolbar.tsx
index 4c34aaf3c..8e46f0769 100644
--- a/src/components/toolbar/AppToolbar.tsx
+++ b/src/components/toolbar/AppToolbar.tsx
@@ -16,8 +16,8 @@ interface AppToolbarProps {
buttons?: ReactNode
isDrawerAvailable: boolean
isDrawerOpen: boolean
- onDrawerButtonClick?: (event: React.MouseEvent) => void,
- isFullscreen?: boolean,
+ onDrawerButtonClick?: (event: React.MouseEvent) => void
+ isBackButtonAvailable?: boolean
isUserMenuAvailable?: boolean
}
@@ -34,31 +34,21 @@ const AppToolbar: FC> = ({
isDrawerAvailable,
isDrawerOpen,
onDrawerButtonClick = () => { /* no-op */ },
- isFullscreen = false,
+ isBackButtonAvailable = false,
isUserMenuAvailable = true
}) => {
const { user } = useApi();
const isUserLoggedIn = Boolean(user);
- const isBackButtonAvailable = appRouter.canGoBack();
-
- // Only use the left safe area padding when the drawer is not pinned or in a fullscreen view
- const useSafeAreaLeft = isDrawerAvailable || isFullscreen;
-
return (
{
+ const {
+ data: systemInfo,
+ isPending
+ } = useSystemInfo();
+
+ return (
+
+ }
+ component={Link}
+ to='/'
+ >
+ {isPending ? '' : (systemInfo?.ServerName || 'Jellyfin')}
+
+ );
+};
+
+export default ServerButton;
diff --git a/src/hooks/useCurrentTab.ts b/src/hooks/useCurrentTab.ts
index 11c2569fc..f8b3202a5 100644
--- a/src/hooks/useCurrentTab.ts
+++ b/src/hooks/useCurrentTab.ts
@@ -1,6 +1,7 @@
-import { getDefaultTabIndex } from 'apps/experimental/components/tabs/tabRoutes';
import { useLocation, useSearchParams } from 'react-router-dom';
+import { getDefaultViewIndex } from 'apps/experimental/features/libraries/utils/path';
+
const useCurrentTab = () => {
const location = useLocation();
const [searchParams, setSearchParams] = useSearchParams();
@@ -12,7 +13,7 @@ const useCurrentTab = () => {
const activeTab: number =
searchParamsTab !== null ?
parseInt(searchParamsTab, 10) :
- getDefaultTabIndex(location.pathname, libraryId);
+ getDefaultViewIndex(location.pathname, libraryId);
return {
searchParams,