mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Restore librarymenu.setTabs functionality
This commit is contained in:
parent
ea1d069e90
commit
91961de0ce
26 changed files with 124 additions and 209 deletions
|
@ -30,6 +30,7 @@ import '../elements/emby-button/paper-icon-button-light';
|
|||
import 'material-design-icons-iconfont';
|
||||
import '../styles/scrollstyles.scss';
|
||||
import '../styles/flexstyles.scss';
|
||||
import { EventType } from 'types/eventType';
|
||||
|
||||
function renderHeader() {
|
||||
let html = '';
|
||||
|
@ -703,6 +704,8 @@ const skinHeader = document.querySelector('.skinHeader');
|
|||
let requiresUserRefresh = true;
|
||||
|
||||
function setTabs (type, selectedIndex, builder) {
|
||||
Events.trigger(document, EventType.SET_TABS, type ? [ type, selectedIndex, builder()] : []);
|
||||
|
||||
import('../components/maintabsmanager').then((mainTabsManager) => {
|
||||
if (type) {
|
||||
mainTabsManager.setTabs(viewManager.currentView(), selectedIndex, builder, function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue