feat: sync active mailbox pulse indicator with WebSocket connection status
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user