Skip to content

Commit 33704e2

Browse files
committed
PR Feedback; Make "inactive" a grey colour
1 parent 5335798 commit 33704e2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

site/frontend/src/pages/status_new/collector.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ const props = defineProps<{
88
collector: CollectorConfig;
99
}>();
1010
11-
function statusClass(c: CollectorConfig): string {
12-
return c.isActive ? "active" : "inactive";
13-
}
14-
1511
const FILTERS: BenchmarkJobStatus[] = [
1612
"InProgress",
1713
"Queued",
@@ -51,16 +47,16 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
5147
let statusClass = "active";
5248
5349
switch (collector.isActive) {
54-
case true:
50+
case false:
5551
if (hourDiff >= maxInactivityHours) {
5652
statusText = "Offline";
57-
statusClass = "inactive";
53+
statusClass = "offline";
5854
} else {
5955
statusText = "Active";
6056
statusClass = "active";
6157
}
6258
break;
63-
case false:
59+
case true:
6460
statusText = "Inactive";
6561
statusClass = "inactive";
6662
break;
@@ -262,6 +258,11 @@ $sm-radius: 8px;
262258
font-weight: bold;
263259
}
264260
.status.inactive {
261+
background: #ccc;
262+
color: white;
263+
font-weight: bold;
264+
}
265+
.status.offline {
265266
background: red;
266267
color: white;
267268
font-weight: bold;

0 commit comments

Comments
 (0)