mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add back button to experimental layout
This commit is contained in:
parent
c7cde3f727
commit
65b17bce34
2 changed files with 28 additions and 2 deletions
|
@ -167,12 +167,13 @@ class AppRouter {
|
|||
|
||||
canGoBack() {
|
||||
const { path, route } = this.currentRouteInfo;
|
||||
const pathOnly = path?.split('?')[0] ?? '';
|
||||
|
||||
if (!route) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!document.querySelector('.dialogContainer') && (START_PAGE_TYPES.includes(route.type) || START_PAGE_PATHS.includes(path))) {
|
||||
if (!document.querySelector('.dialogContainer') && (START_PAGE_TYPES.includes(route.type) || START_PAGE_PATHS.includes(pathOnly))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue