diff --git a/admin-spa/src/components/nav/SubmenuBar.tsx b/admin-spa/src/components/nav/SubmenuBar.tsx index afbe4be..cc41394 100644 --- a/admin-spa/src/components/nav/SubmenuBar.tsx +++ b/admin-spa/src/components/nav/SubmenuBar.tsx @@ -22,8 +22,8 @@ export default function SubmenuBar({ items = [], fullscreen = false, headerVisib
{items.map((it) => { const key = `${it.label}-${it.path || it.href}`; - // Fix: Always use exact match to prevent first submenu from being always active - const isActive = !!it.path && pathname === it.path; + // Check if current path starts with the submenu path (for sub-pages like /settings/notifications/staff) + const isActive = !!it.path && (pathname === it.path || pathname.startsWith(it.path + '/')); const cls = [ 'ui-ctrl inline-flex items-center gap-2 rounded-md px-2.5 py-1.5 border text-sm whitespace-nowrap', 'focus:outline-none focus:ring-0 focus:shadow-none', diff --git a/admin-spa/src/routes/Settings/Notifications/Customer/Events.tsx b/admin-spa/src/routes/Settings/Notifications/Customer/Events.tsx index 1130bcd..63c82dc 100644 --- a/admin-spa/src/routes/Settings/Notifications/Customer/Events.tsx +++ b/admin-spa/src/routes/Settings/Notifications/Customer/Events.tsx @@ -119,30 +119,32 @@ export default function CustomerEvents() {
-
+
{enabledChannels.map((channel: NotificationChannel) => { const channelSettings = event.channels[channel.id]; const isEnabled = channelSettings?.enabled || false; const recipient = channelSettings?.recipient || 'customer'; return ( -
+
-
+
{getChannelIcon(channel.id)}
{channel.label} {channel.builtin && ( - + {__('Built-in')} )}
-
- {__('Recipient')}: {recipient} -
+ {isEnabled && ( + + {__('Send to')}: {recipient === 'admin' ? __('Admin') : recipient === 'customer' ? __('Customer') : __('Both')} + + )}