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

Method HasPendingOperations

internal/ui/models/state.go:386–391  ·  view source on GitHub ↗

HasPendingOperations checks if there are any pending VM or node operations.

()

Source from the content-addressed store, hash-verified

384
385// HasPendingOperations checks if there are any pending VM or node operations.
386func (s *State) HasPendingOperations() bool {
387 s.pendingMutex.RLock()
388 defer s.pendingMutex.RUnlock()
389
390 return len(s.PendingVMOperations) > 0 || len(s.PendingNodeOperations) > 0
391}
392
393// CanVMPerformActions checks if a VM can perform actions (no pending operations).
394// Returns true if the VM can perform actions, false otherwise.

Callers 6

setupKeyboardHandlersMethod · 0.80
doManualRefreshMethod · 0.80
doFastRefreshMethod · 0.80
toggleAutoRefreshMethod · 0.80
startAutoRefreshMethod · 0.80
ShowGlobalContextMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected