feat: Show settings submenu in all modes for consistent experience

This commit is contained in:
dwindown
2025-11-05 12:06:28 +07:00
parent 855f3fcae5
commit bb13438ec0

View File

@@ -102,12 +102,8 @@ function getStaticFallbackTree(): MainNode[] {
label: 'Settings',
path: '/settings',
icon: 'settings',
// Only show submenu in standalone mode
get children() {
const isStandalone = (window as any).WNW_CONFIG?.standaloneMode;
if (!isStandalone) return [];
return [
// Settings submenu available in all modes for consistent experience
children: [
// WooNooW Settings
{ label: 'WooNooW', mode: 'spa' as const, path: '/settings' },
@@ -125,8 +121,7 @@ function getStaticFallbackTree(): MainNode[] {
{ label: 'Integration', mode: 'bridge' as const, href: `${admin}?page=wc-settings&tab=integration` },
{ label: 'Status', mode: 'bridge' as const, href: `${admin}?page=wc-status` },
{ label: 'Extensions', mode: 'bridge' as const, href: `${admin}?page=wc-addons` },
];
},
],
},
];
}