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

Remove setTitle function in app router

This commit is contained in:
Bill Thornton 2022-03-31 14:36:09 -04:00
parent 3a14418e47
commit 1085034c18
7 changed files with 14 additions and 15 deletions

View file

@ -11,7 +11,7 @@ import AlphaPicker from '../components/alphaPicker/alphaPicker';
import '../elements/emby-itemscontainer/emby-itemscontainer';
import '../elements/emby-scroller/emby-scroller';
import ServerConnections from '../components/ServerConnections';
import { appRouter } from '../components/appRouter';
import LibraryMenu from '../scripts/libraryMenu';
/* eslint-disable indent */
@ -635,7 +635,7 @@ class ItemsView {
}
function setTitle(item) {
appRouter.setTitle(getTitle(item) || '');
LibraryMenu.setTitle(getTitle(item) || '');
if (item && item.CollectionType === 'playlists') {
hideOrShowAll(view.querySelectorAll('.btnNewItem'), false);