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

add MessageNoFavoritesAvailable string

This commit is contained in:
grafixeyehero 2022-08-06 02:38:27 +03:00
parent 9741470c8c
commit 87ebe89196
4 changed files with 26 additions and 22 deletions

View file

@ -138,21 +138,23 @@ import '../elements/emby-button/emby-button';
configureSwipeTabs(view, tabsElem);
tabsElem.addEventListener('beforetabchange', function (e) {
const tabContainers = getTabContainersFn();
if (e.detail.previousIndex != null) {
const previousPanel = tabContainers[e.detail.previousIndex];
if (previousPanel) {
previousPanel.classList.remove('is-active');
if (getTabContainersFn) {
tabsElem.addEventListener('beforetabchange', function (e) {
const tabContainers = getTabContainersFn();
if (e.detail.previousIndex != null) {
const previousPanel = tabContainers[e.detail.previousIndex];
if (previousPanel) {
previousPanel.classList.remove('is-active');
}
}
}
const newPanel = tabContainers[e.detail.selectedTabIndex];
const newPanel = tabContainers[e.detail.selectedTabIndex];
if (newPanel) {
newPanel.classList.add('is-active');
}
});
if (newPanel) {
newPanel.classList.add('is-active');
}
});
}
if (onBeforeTabChange) {
tabsElem.addEventListener('beforetabchange', onBeforeTabChange);