Use single up/down button per project
This commit is contained in:
@@ -21,10 +21,12 @@ def _arcane_kb(page: int, total_pages: int, items: list[dict]) -> InlineKeyboard
|
|||||||
pid = p.get("id", "")
|
pid = p.get("id", "")
|
||||||
if not pid:
|
if not pid:
|
||||||
continue
|
continue
|
||||||
|
status = p.get("status", "unknown")
|
||||||
|
action = "down" if status == "running" else "up"
|
||||||
|
action_text = "⏹" if action == "down" else "▶️"
|
||||||
rows.append([
|
rows.append([
|
||||||
InlineKeyboardButton(text=f"🔄 {name}", callback_data=f"arcane:restart:{pid}"),
|
InlineKeyboardButton(text=f"🔄 {name}", callback_data=f"arcane:restart:{pid}"),
|
||||||
InlineKeyboardButton(text="▶️", callback_data=f"arcane:up:{pid}"),
|
InlineKeyboardButton(text=action_text, callback_data=f"arcane:{action}:{pid}"),
|
||||||
InlineKeyboardButton(text="⏹", callback_data=f"arcane:down:{pid}"),
|
|
||||||
])
|
])
|
||||||
|
|
||||||
nav = []
|
nav = []
|
||||||
|
|||||||
Reference in New Issue
Block a user