fix status

This commit is contained in:
2023-10-18 22:34:29 +08:00
parent f4f14655d5
commit bdf4026e91
2 changed files with 6 additions and 3 deletions

View File

@@ -237,13 +237,15 @@ class HomeUI extends BaseUI<HomeUIModel> {
item["status"] == "ok"
? FontAwesomeIcons.circleCheck
: FluentIcons.error,
color: item["status"] == "ok"
color: (item["status"] ==
"operational" ||
item["status"] == "ok")
? Colors.green
: Colors.red,
size: 20,
size: 18,
),
),
const SizedBox(width: 4),
const SizedBox(width: 3),
Text(
"${model.statusCnName[item["name"]] ?? item["name"]}",
style: const TextStyle(fontSize: 13),