feat(client-ui): AlarmsViewModel Shelve/Confirm methods + CanShelve/CanConfirm

This commit is contained in:
Joseph Doherty
2026-06-16 18:23:11 -04:00
parent 8980adceb3
commit 4f55d894a2
3 changed files with 271 additions and 0 deletions
@@ -96,4 +96,10 @@ public class AlarmEventViewModel : ObservableObject
/// <summary>Whether this alarm can be acknowledged (active, not yet acked, has EventId).</summary>
public bool CanAcknowledge => ActiveState && !AckedState && EventId != null && ConditionNodeId != null;
/// <summary>Whether this alarm can be shelved/unshelved (has a ConditionNodeId).</summary>
public bool CanShelve => ConditionNodeId != null;
/// <summary>Whether this alarm can be confirmed (already acked, has EventId + ConditionNodeId).</summary>
public bool CanConfirm => AckedState && EventId != null && ConditionNodeId != null;
}