diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-08-13 08:38:29 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-08-13 08:38:29 +0000 |
| commit | a03d7673e7adf9a575c7272b2b528a74b230535e (patch) | |
| tree | a4ac635d92eade4df117db2a4fbdfe1eff13d677 /internal/handlers/widget.go | |
| parent | 2509dde6aa372a505b186657706f4d21bd391807 (diff) | |
Fix blank task-detail modal for Google Tasks
loadTaskDetailData/HandleUpdateTask only had cases for "trello" and
"doot" sources, so opening a gtask from the Tasks or Timeline tab
rendered an empty title/description. Reuses the existing
findGoogleTask cache lookup for both. Renamed the API client's
UpdateTaskNotes to UpdateTask(title, notes) so the web modal can save
an edited title too, not just description; the widget's
description-only edit popup now just round-trips the task's existing
title unchanged.
Diffstat (limited to 'internal/handlers/widget.go')
| -rw-r--r-- | internal/handlers/widget.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/widget.go b/internal/handlers/widget.go index 1f6911b..7557da1 100644 --- a/internal/handlers/widget.go +++ b/internal/handlers/widget.go @@ -367,7 +367,7 @@ func (h *Handler) HandleWidgetUpdate(w http.ResponseWriter, r *http.Request) { http.Error(w, "task not found", http.StatusNotFound) return } - if err := h.googleTasksClient.UpdateTaskNotes(r.Context(), t.ListID, req.ID, req.Description); err != nil { + if err := h.googleTasksClient.UpdateTask(r.Context(), t.ListID, req.ID, t.Title, req.Description); err != nil { http.Error(w, "failed to update task", http.StatusInternalServerError) return } |
