setup profile edition

This commit is contained in:
2025-09-27 10:56:32 +03:00
parent 1a49545fff
commit 0875624aa5
6 changed files with 101 additions and 14 deletions

View File

@@ -11,9 +11,9 @@ from .states import StartSG
start_dialog = Dialog(
Window(
Format("Привет, {user.fullname}"),
Start(Const("события"), id="events", state=EventsSG.events_list),
Button(Const("создать событие"), id="create_event", when="is_admin"),
Start(Const("профиль"), id="profile", state=ProfileSG.profile),
Start(Const("📃 события"), id="events", state=EventsSG.events_list),
Button(Const("✏️ создать событие"), id="create_event", when="is_admin"),
Start(Const("👤 профиль"), id="profile", state=ProfileSG.profile),
getter=[user_getter, is_admin_getter],
state=StartSG.start,
)