mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-21 02:17:36 +00:00
tailcfg: send health update if DisplayMessage URL changes
Updates tailscale/corp#27759 Signed-off-by: James Sanderson <jsanderson@tailscale.com>
This commit is contained in:

committed by
James 'zofrex' Sanderson

parent
7a3221177e
commit
e0fcd596bf
@@ -2171,7 +2171,10 @@ func (m DisplayMessage) Equal(o DisplayMessage) bool {
|
||||
return m.Title == o.Title &&
|
||||
m.Text == o.Text &&
|
||||
m.Severity == o.Severity &&
|
||||
m.ImpactsConnectivity == o.ImpactsConnectivity
|
||||
m.ImpactsConnectivity == o.ImpactsConnectivity &&
|
||||
(m.PrimaryAction == nil) == (o.PrimaryAction == nil) &&
|
||||
(m.PrimaryAction == nil || (m.PrimaryAction.URL == o.PrimaryAction.URL &&
|
||||
m.PrimaryAction.Label == o.PrimaryAction.Label))
|
||||
}
|
||||
|
||||
// DisplayMessageSeverity represents how serious a [DisplayMessage] is. Analogous
|
||||
|
Reference in New Issue
Block a user