Skip to content

Commit

Permalink
Hide rows that are Absent+Unauthorized (#157)
Browse files Browse the repository at this point in the history
Previously only hid rows that were all Absent

Fixes #156

Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler authored Oct 14, 2024
1 parent 8d481fc commit 64eb45c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OrcanodeMonitor/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public async Task OnGetAsync()
var nodes = await _databaseContext.Orcanodes.ToListAsync();
_nodes = nodes.Where(n => n.DataplicityConnectionStatus != OrcanodeOnlineStatus.Absent ||
n.OrcasoundStatus != OrcanodeOnlineStatus.Absent ||
n.S3StreamStatus != OrcanodeOnlineStatus.Absent)
(n.S3StreamStatus != OrcanodeOnlineStatus.Absent &&
n.S3StreamStatus != OrcanodeOnlineStatus.Unauthorized))
.OrderByDescending(n => n.Type)
.ThenBy(n => n.DisplayName)
.ToList();
Expand Down

0 comments on commit 64eb45c

Please sign in to comment.