Merge branch 'development' into fix/move-create-diary-to-modal

This commit is contained in:
Gustavo Henrique Miranda 2025-07-15 17:25:06 -03:00 committed by GitHub
commit 4f153c5a5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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]):