@@ -304,6 +297,7 @@
0
}
+ // Load the channel state on mount so the "no channels" warning doesn't depend on
+ // there being unacknowledged alerts to trigger a refresh (muting auto-acks them).
+ onMount(() => {
+ if ($superadmin) checkCriticalAlertChannels()
+ })
+
async function acknowledgeAlert(id: number) {
await acknowledgeCriticalAlert({ id })
getAlerts(false)
@@ -133,7 +143,7 @@
- {#if !hasCriticalAlertChannels && $superadmin}
+ {#if $superadmin && isMuted && !hasCriticalAlertChannels}