MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / SetTasks

Method SetTasks

internal/ui/components/tasks_list.go:105–110  ·  view source on GitHub ↗

SetTasks updates the tasks list with new data.

(tasks []*api.ClusterTask)

Source from the content-addressed store, hash-verified

103
104// SetTasks updates the tasks list with new data.
105func (tl *TasksList) SetTasks(tasks []*api.ClusterTask) {
106 tl.tasks = tasks
107 tl.updateHistoryTable()
108 // Also refresh active tasks since we are updating
109 tl.Refresh()
110}
111
112// SetFilteredTasks updates the tasks list with filtered data.
113func (tl *TasksList) SetFilteredTasks(tasks []*api.ClusterTask) {

Callers

nothing calls this directly

Calls 2

updateHistoryTableMethod · 0.95
RefreshMethod · 0.95

Tested by

no test coverage detected