mostly working after the refactor
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user