fix(P0-4): Review leer-Liste → Zurück-Button garantiert
This commit is contained in:
@@ -672,10 +672,21 @@ def render_review_room_add_new(
|
||||
(text, attachments) Tuple
|
||||
"""
|
||||
if not available_rooms:
|
||||
# P0-4: Auch bei leerer Liste einen Zurück-Button rendern,
|
||||
# damit der User nicht in einer UX-Sackgasse steckt.
|
||||
special_buttons: List[Tuple[str, str, str]] = [
|
||||
("↩️ Zurück", REVIEW_ROOM_BACK, "default"),
|
||||
]
|
||||
attachments = build_button_attachments(
|
||||
[],
|
||||
special_buttons,
|
||||
color="#1d74f5",
|
||||
title="Neuen Raum hinzufügen",
|
||||
)
|
||||
return (
|
||||
"📋 **Neuer Raum** — Keine weiteren Räume verfügbar.\n"
|
||||
"Alle Rocket.Chat-Räume sind bereits in der Room-Map.",
|
||||
[],
|
||||
attachments,
|
||||
)
|
||||
|
||||
lines = [
|
||||
|
||||
Reference in New Issue
Block a user