fix(status): provider setup vs warn
This commit is contained in:
@@ -360,11 +360,14 @@ export async function statusAllCommand(
|
||||
const providerRows = providers.rows.map((row) => ({
|
||||
Provider: row.provider,
|
||||
Enabled: row.enabled ? ok("ON") : muted("OFF"),
|
||||
Configured: row.configured
|
||||
? ok("OK")
|
||||
: row.enabled
|
||||
? warn("WARN")
|
||||
: muted("OFF"),
|
||||
State:
|
||||
row.state === "ok"
|
||||
? ok("OK")
|
||||
: row.state === "warn"
|
||||
? warn("WARN")
|
||||
: row.state === "off"
|
||||
? muted("OFF")
|
||||
: theme.accentDim("SETUP"),
|
||||
Detail: row.detail,
|
||||
}));
|
||||
|
||||
@@ -373,7 +376,7 @@ export async function statusAllCommand(
|
||||
columns: [
|
||||
{ key: "Provider", header: "Provider", minWidth: 10 },
|
||||
{ key: "Enabled", header: "Enabled", minWidth: 7 },
|
||||
{ key: "Configured", header: "Configured", minWidth: 10 },
|
||||
{ key: "State", header: "State", minWidth: 8 },
|
||||
{ key: "Detail", header: "Detail", flex: true, minWidth: 28 },
|
||||
],
|
||||
rows: providerRows,
|
||||
|
||||
Reference in New Issue
Block a user