mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-09 16:10:17 +00:00
Merge branch 'development' into fix/move-create-diary-to-modal
This commit is contained in:
@@ -46,7 +46,9 @@ class NewDiaryModal(ModalScreen[str]):
|
||||
def action_create_diary(self) -> None:
|
||||
diary_name = self.name_input.value.strip()
|
||||
if diary_name:
|
||||
|
||||
self.call_later(self._async_create_diary, diary_name)
|
||||
|
||||
else:
|
||||
self.notify("Diary name cannot be empty.", severity="warning")
|
||||
self.name_input.focus()
|
||||
@@ -75,3 +77,4 @@ class NewDiaryModal(ModalScreen[str]):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user