feat(admin-ui): Phase B frontend — notifications preferences route + UI
This commit is contained in:
@@ -88,8 +88,19 @@ export function NotificationsDrawer({ open, onClose }: Props) {
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{totalUnread > 0 && (
|
||||
<div className="border-t border-line pt-3 flex items-center justify-end">
|
||||
<div className="border-t border-line pt-3 flex items-center justify-between">
|
||||
{/* Phase B: link к per-channel preferences page. Всегда visible
|
||||
(даже если unread=0 — пользователь может зайти настроить впрок). */}
|
||||
<Link
|
||||
to="/me/notifications/preferences"
|
||||
className="text-sm text-accent hover:underline"
|
||||
onClick={onClose}
|
||||
>
|
||||
{t('notifications.preferencesLink', {
|
||||
defaultValue: 'Настроить каналы →',
|
||||
})}
|
||||
</Link>
|
||||
{totalUnread > 0 && (
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
@@ -102,8 +113,8 @@ export function NotificationsDrawer({ open, onClose }: Props) {
|
||||
defaultValue: 'Прочитать все',
|
||||
})}
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</Drawer>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user