Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webui/components/modals/scheduler/scheduler-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ const schedulerStoreModel = {
// Smart merge: preserve object references to prevent UI flickering
const taskMap = new Map(this.tasks.map((t) => [t.uuid, t]));
this.tasks = sidebarTasks.map((sidebarTask) => {
const taskId = sidebarTask.uuid || sidebarTask.id;
const taskId = sidebarTask.uuid || sidebarTask.id || sidebarTask.context_id;
const existing = taskMap.get(taskId);
if (existing) {
// Update existing object in-place if different
Expand Down
4 changes: 2 additions & 2 deletions webui/components/sidebar/tasks/tasks-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ const model = {

// Returns true if a task with the given id exists in the current list
contains(taskId) {
return Array.isArray(this.tasks) && this.tasks.some((t) => t?.id === taskId);
return Array.isArray(this.tasks) && this.tasks.some((t) => t?.uuid === taskId);
},

// Convenience: id of the first task in the current list (or empty string)
firstId() {
return (Array.isArray(this.tasks) && this.tasks[0]?.id) || "";
return (Array.isArray(this.tasks) && this.tasks[0]?.uuid) || "";
},

// Action methods for task management
Expand Down
2 changes: 1 addition & 1 deletion webui/css/modals.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ some classes like modal-header are shared between the old and the new system */
/* Modal Header */
.modal-header {
display: grid;
grid-template-columns: 40fr 0.5fr;
grid-template-columns: 1fr auto;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1.5rem 0.5rem 2rem;
Expand Down