Markt-Navigation wieder sichtbar schalten

This commit is contained in:
gitea_admin committed 2026-09-20 09:39:50 +02:00
1 parent b68546f824
commit 1bf5b51679
1 file changed
+6 -3
+6 -3
View File
@@ -927,6 +927,7 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM
echo "const renderLeftNavigation = (moduleName) => {"; echo "const renderLeftNavigation = (moduleName) => {";
echo " const title = document.querySelector('[data-left-navigation-title]');"; echo " const title = document.querySelector('[data-left-navigation-title]');";
echo " const contentTitle = document.querySelector('[data-left-navigation-content-title]');"; echo " const contentTitle = document.querySelector('[data-left-navigation-content-title]');";
echo " const contentSection = document.querySelector('.sg-left-navigation-pattern__group-card--content');";
echo " const contentBody = document.querySelector('[data-left-navigation-content-body]');"; echo " const contentBody = document.querySelector('[data-left-navigation-content-body]');";
echo " const menu = document.getElementById('left-navigation-menu');"; echo " const menu = document.getElementById('left-navigation-menu');";
echo " if (title) { title.textContent = moduleName; }"; echo " if (title) { title.textContent = moduleName; }";
@@ -934,6 +935,7 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM
echo " const entries = portalModuleNavigation[moduleName] || [];"; echo " const entries = portalModuleNavigation[moduleName] || [];";
echo " const activeEntry = entries[0] || '';"; echo " const activeEntry = entries[0] || '';";
echo " if (contentTitle) { contentTitle.textContent = activeEntry; }"; echo " if (contentTitle) { contentTitle.textContent = activeEntry; }";
echo " if (contentSection) { contentSection.setAttribute('aria-hidden', 'false'); }";
echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[activeEntry] || ''; }"; echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[activeEntry] || ''; }";
echo " if (activeEntry === 'Bestellungen') { initBestellungenBindings(); }"; echo " if (activeEntry === 'Bestellungen') { initBestellungenBindings(); }";
echo " if (activeEntry === 'Marktdurchführungen') { initMarketsBindings(); }"; echo " if (activeEntry === 'Marktdurchführungen') { initMarketsBindings(); }";
@@ -955,9 +957,10 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM
echo " menu.querySelectorAll('.sg-tab-button').forEach((otherButton) => {"; echo " menu.querySelectorAll('.sg-tab-button').forEach((otherButton) => {";
echo " otherButton.setAttribute('aria-selected', String(otherButton === button));"; echo " otherButton.setAttribute('aria-selected', String(otherButton === button));";
echo " });"; echo " });";
echo " const entryName = button.textContent.trim();"; echo " const entryName = button.textContent.trim();";
echo " if (contentTitle) { contentTitle.textContent = entryName; }"; echo " if (contentTitle) { contentTitle.textContent = entryName; }";
echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[entryName] || ''; }"; echo " if (contentSection) { contentSection.setAttribute('aria-hidden', 'false'); }";
echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[entryName] || ''; }";
echo " if (entryName === 'Bestellungen') { initBestellungenBindings(); }"; echo " if (entryName === 'Bestellungen') { initBestellungenBindings(); }";
echo " if (entryName === 'Marktdurchführungen') { initMarketsBindings(); }"; echo " if (entryName === 'Marktdurchführungen') { initMarketsBindings(); }";
echo " if (entryName === 'Märkte') { initMarketDefinitionsBindings(); }"; echo " if (entryName === 'Märkte') { initMarketDefinitionsBindings(); }";