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", "")
|
||||
if not pid:
|
||||
continue
|
||||
status = p.get("status", "unknown")
|
||||
action = "down" if status == "running" else "up"
|
||||
action_text = "⏹" if action == "down" else "▶️"
|
||||
rows.append([
|
||||
InlineKeyboardButton(text=f"🔄 {name}", callback_data=f"arcane:restart:{pid}"),
|
||||
InlineKeyboardButton(text="▶️", callback_data=f"arcane:up:{pid}"),
|
||||
InlineKeyboardButton(text="⏹", callback_data=f"arcane:down:{pid}"),
|
||||
InlineKeyboardButton(text=action_text, callback_data=f"arcane:{action}:{pid}"),
|
||||
])
|
||||
|
||||
nav = []
|
||||
|
||||
Reference in New Issue
Block a user