File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
site/frontend/src/pages/status_new Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ const props = defineProps<{
8
8
collector: CollectorConfig ;
9
9
}>();
10
10
11
- function statusClass(c : CollectorConfig ): string {
12
- return c .isActive ? " active" : " inactive" ;
13
- }
14
-
15
11
const FILTERS: BenchmarkJobStatus [] = [
16
12
" InProgress" ,
17
13
" Queued" ,
@@ -51,16 +47,16 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
51
47
let statusClass = " active" ;
52
48
53
49
switch (collector .isActive ) {
54
- case true :
50
+ case false :
55
51
if (hourDiff >= maxInactivityHours ) {
56
52
statusText = " Offline" ;
57
- statusClass = " inactive " ;
53
+ statusClass = " offline " ;
58
54
} else {
59
55
statusText = " Active" ;
60
56
statusClass = " active" ;
61
57
}
62
58
break ;
63
- case false :
59
+ case true :
64
60
statusText = " Inactive" ;
65
61
statusClass = " inactive" ;
66
62
break ;
@@ -262,6 +258,11 @@ $sm-radius: 8px;
262
258
font-weight : bold ;
263
259
}
264
260
.status.inactive {
261
+ background : #ccc ;
262
+ color : white ;
263
+ font-weight : bold ;
264
+ }
265
+ .status.offline {
265
266
background : red ;
266
267
color : white ;
267
268
font-weight : bold ;
You can’t perform that action at this time.
0 commit comments