mirror of https://github.com/gmbrax/Pilgrim.git
Merge branch 'development' into fix/move-create-diary-to-modal
This commit is contained in:
commit
4f153c5a5b
|
|
@ -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]):
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue