feat: sync active mailbox pulse indicator with WebSocket connection status

This commit is contained in:
idevakk
2026-03-06 02:50:07 +05:30
parent e6fd4e6f4c
commit c35206664d
3 changed files with 17 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
<body class="bg-app-bg text-[#FAFAFA] antialiased selection:bg-[#EC4899]/30 h-full overflow-hidden"
x-data="{
toasts: [],
wsConnected: true,
addToast(msg, type = 'success') {
const id = Date.now();
this.toasts.push({ id, msg, type });
@@ -33,7 +34,8 @@
}, 4000);
}
}"
@notify.window="addToast($event.detail.message, $event.detail.type)">
@notify.window="addToast($event.detail.message, $event.detail.type)"
@ws-status.window="wsConnected = $event.detail.connected">
{{ $slot }}