mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 07:02:06 +00:00
fix: show empty stored
This commit is contained in:
@@ -365,8 +365,10 @@ def put_arg_stored(kwargs: T_Output_Kwargs) -> Output:
|
|||||||
put_text(value).style("--dashboard-value--")
|
put_text(value).style("--dashboard-value--")
|
||||||
])]
|
])]
|
||||||
else:
|
else:
|
||||||
# Empty
|
# No Data
|
||||||
rows = []
|
rows = [put_scope(f"dashboard-value-{name}", [
|
||||||
|
put_text(t("Gui.Dashboard.NoData")).style("--dashboard-value--")
|
||||||
|
])]
|
||||||
# Add other key-value in stored
|
# Add other key-value in stored
|
||||||
if values:
|
if values:
|
||||||
rows += [
|
rows += [
|
||||||
@@ -378,6 +380,11 @@ def put_arg_stored(kwargs: T_Output_Kwargs) -> Output:
|
|||||||
rows.append(
|
rows.append(
|
||||||
put_text(time_).style("--dashboard-time--")
|
put_text(time_).style("--dashboard-time--")
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
# Blank row
|
||||||
|
rows.append(
|
||||||
|
put_text(" ").style("--dashboard-time--")
|
||||||
|
)
|
||||||
|
|
||||||
return put_scope(
|
return put_scope(
|
||||||
f"arg_container-stored-{name}",
|
f"arg_container-stored-{name}",
|
||||||
|
|||||||
Reference in New Issue
Block a user