Fix issues with critical alerts breaking the simulation

This commit is contained in:
voltsrage
2026-06-25 02:06:35 +08:00
parent df6fbed401
commit 09a84f34ba
29 changed files with 196 additions and 155 deletions
@@ -12,7 +12,7 @@ import EmptyState from '@/components/ui/EmptyState.vue'
const alertStore = useAlertStore()
const { alerts, loading } = storeToRefs(alertStore)
const activeFilter = ref('Open')
const activeFilter = ref('OPEN')
const confirmingAlert = ref(null)
watch(activeFilter, (status) => {
@@ -68,7 +68,7 @@ const selectedAlert = ref(null)
let nextAlertIndex = 0
const openAlerts = computed(() =>
alerts.value.filter(a => a.status === 'Open' || a.status === 'Escalated'),
alerts.value.filter(a => a.status === 'OPEN' || a.status === 'ESCALATED'),
)
const isDischarged = computed(() => encounter.value?.status === 'Discharged')