Merge pull request #6588 from thornbill/wizard-library-controller

Fix wizard reference to dashboard library controller
This commit is contained in:
Bill Thornton
2025-03-03 15:42:13 -05:00
committed by GitHub
4 changed files with 392 additions and 14 deletions
+2 -12
View File
@@ -7,7 +7,7 @@ import dom from 'scripts/dom';
import imageHelper from 'utils/image';
import 'components/cardbuilder/card.scss';
import 'elements/emby-itemrefreshindicator/emby-itemrefreshindicator';
import Dashboard, { pageClassOn, pageIdOn } from 'utils/dashboard';
import { pageClassOn, pageIdOn } from 'utils/dashboard';
import confirm from 'components/confirm/confirm';
import { getDefaultBackgroundClass } from 'components/cardbuilder/cardBuilderUtils';
@@ -256,14 +256,9 @@ function getCollectionTypeOptions() {
function getVirtualFolderHtml(page, virtualFolder, index) {
let html = '';
let style = '';
if (page.classList.contains('wizardPage')) {
style += 'min-width:33.3%;';
}
const elementId = virtualFolder.elementId ? `id="${virtualFolder.elementId}" ` : '';
html += '<div ' + elementId + 'class="card backdropCard scalableCard backdropCard-scalable" style="' + style + '" data-index="' + index + '" data-id="' + virtualFolder.ItemId + '">';
html += '<div ' + elementId + 'class="card backdropCard scalableCard backdropCard-scalable" data-index="' + index + '" data-id="' + virtualFolder.ItemId + '">';
html += '<div class="cardBox visualCardBox">';
html += '<div class="cardScalable visualCardBox-cardScalable">';
@@ -364,11 +359,6 @@ function getVirtualFolderHtml(page, virtualFolder, index) {
return html;
}
window.WizardLibraryPage = {
next: function () {
Dashboard.navigate('wizardsettings.html');
}
};
pageClassOn('pageshow', 'mediaLibraryPage', function () {
reloadLibrary(this);
});
@@ -53,7 +53,7 @@ export const LEGACY_PUBLIC_ROUTES: LegacyRoute[] = [
{
path: 'wizardlibrary.html',
pageProps: {
controller: 'dashboard/library',
controller: 'wizard/library',
view: 'wizard/library.html'
}
},
@@ -53,7 +53,7 @@ export const LEGACY_PUBLIC_ROUTES: LegacyRoute[] = [
{
path: 'wizardlibrary.html',
pageProps: {
controller: 'dashboard/library',
controller: 'wizard/library',
view: 'wizard/library.html'
}
},