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

Method refreshVMDataAndTasks

internal/ui/components/refresh_vm.go:17–19  ·  view source on GitHub ↗

refreshVMDataAndTasks refreshes both VM data and tasks list. This is useful for operations that affect both VM state and create tasks (like volume resize and snapshot rollback).

(vm *api.VM)

Source from the content-addressed store, hash-verified

15// refreshVMDataAndTasks refreshes both VM data and tasks list.
16// This is useful for operations that affect both VM state and create tasks (like volume resize and snapshot rollback).
17func (a *App) refreshVMDataAndTasks(vm *api.VM) {
18 a.doRefreshVMData(vm, true)
19}
20
21// doRefreshVMData is the shared implementation for VM data refresh.
22// When withTasks is true, it also refreshes the tasks list after the VM data is updated.

Callers 2

showResizeStorageModalFunction · 0.80

Calls 1

doRefreshVMDataMethod · 0.95

Tested by

no test coverage detected