Backport pull request #5529 from jellyfin-web/release-10.9.z
Restore library menu tabs functionality Original-merge: 7ce8c070b39354c836434283daed6112e8bf7e9a Merged-by: thornbill <thornbill@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
committed by
Joshua M. Boniface
parent
5b1a65112a
commit
e2f805da19
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user