feat: add ETA display and comment support in dashboard

This commit is contained in:
2026-07-06 22:40:30 +08:00
parent e15eb7a9a5
commit 2bb2c2f4a4
6 changed files with 24 additions and 3 deletions
+5
View File
@@ -341,6 +341,11 @@ class AlasGUI(Frame):
put_text(config.get("value", nodata)).style("--dashboard-value--"),
put_text(f' / {config.get("total", "")}').style("--dashboard-time--"),
]
elif "comment" in dic.get("attrs", []) and config.get("comment") is not None:
return [
put_text(config.get("value", nodata)).style("--dashboard-value--"),
put_text(f' {config.get("comment", "")}').style("--dashboard-time--"),
]
else:
return [
put_text(config.get("value", nodata)).style("--dashboard-value--"),