Check agent CLI sign-in in server setup with a sign-in button
This commit is contained in:
@@ -36,6 +36,12 @@ struct Check: Decodable {
|
||||
let tool: String
|
||||
let fix: String
|
||||
let blocking: Bool
|
||||
let signedOut: Bool
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case name, need, `for`, ok, tool, fix, blocking
|
||||
case signedOut = "signed_out"
|
||||
}
|
||||
}
|
||||
|
||||
struct Checks: Decodable {
|
||||
@@ -75,7 +81,7 @@ struct ChecksView: View {
|
||||
if check.ok {
|
||||
return Text("Found").foregroundStyle(Palette.ok)
|
||||
}
|
||||
return Text("Missing").foregroundStyle(check.blocking ? Palette.danger : Palette.muted)
|
||||
return Text(check.signedOut ? "Not signed in" : "Missing").foregroundStyle(check.blocking ? Palette.danger : Palette.muted)
|
||||
}
|
||||
|
||||
private func need(_ check: Check) -> String {
|
||||
|
||||
@@ -451,7 +451,7 @@ struct ConnectView: View {
|
||||
}
|
||||
#if os(macOS)
|
||||
if !form.missing.isEmpty {
|
||||
Text("byre can't run on this Mac yet. Install what's missing, then click Run byre on this Mac again.")
|
||||
Text("byre can't run on this Mac yet. Install what's missing and sign in, then click Run byre on this Mac again.")
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.padding(.top, 6)
|
||||
ChecksView(checks: form.missing)
|
||||
|
||||
Reference in New Issue
Block a user