mostly working after the refactor

This commit is contained in:
Tim Bendt
2025-07-02 10:18:10 -04:00
parent 5232bf3b09
commit 0bbb9e6cd4
9 changed files with 27 additions and 28 deletions

View File

@@ -18,7 +18,6 @@ class CreateTaskScreen(ModalScreen):
def compose(self):
yield Container(
Vertical(
Label("Create Task", id="create_task_title"),
Horizontal(
Label("Subject:"),
Input(
@@ -56,6 +55,8 @@ class CreateTaskScreen(ModalScreen):
)
def on_mount(self):
self.query_one("#create_task_container",
Container).border_title = "New Task (taskwarrior)"
self.styles.align = ("center", "middle")
@on(Button.Pressed, "#create_btn")
@@ -69,7 +70,8 @@ class CreateTaskScreen(ModalScreen):
priority = self.query_one("#priority_input").value
# Process tags (split by commas and trim whitespace)
tags = [tag.strip() for tag in tags_input.split(",")] if tags_input else []
tags = [tag.strip()
for tag in tags_input.split(",")] if tags_input else []
# Add a tag for the sender, if provided
if self.from_addr and "@" in self.from_addr: