File tree 2 files changed +11
-0
lines changed
src/tray/watchers/profile
web/scss/components/ProfileExplorer
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,18 @@ export default class ProfileStatusWatcher {
41
41
? "pending"
42
42
: this . headReadiness === "error" || this . workerReadiness === "error"
43
43
? "error"
44
+ : this . isOffline ( this . headReadiness ) && this . isOffline ( this . workerReadiness )
45
+ ? "offline"
44
46
: ! this . isReady ( this . headReadiness ) && ! this . isReady ( this . workerReadiness )
45
47
? "pending"
46
48
: "success"
47
49
}
48
50
51
+ private isOffline ( readiness : string ) {
52
+ const match = readiness . match ( / ^ ( \d ) + \/ ( \d ) + $ / )
53
+ return match && match [ 1 ] === "0"
54
+ }
55
+
49
56
private isReady ( readiness : string ) {
50
57
const match = readiness . match ( / ^ ( \d ) + \/ ( \d ) + $ / )
51
58
return match && match [ 1 ] === match [ 2 ]
Original file line number Diff line number Diff line change 67
67
background-color : var (--color-warning );
68
68
}
69
69
70
+ & --offline {
71
+ background-color : var (--color-red );
72
+ }
73
+
70
74
& --success {
71
75
background-color : var (--color-ok );
72
76
}
You can’t perform that action at this time.
0 commit comments