MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / CloseAllModals

Method CloseAllModals

tsunami/engine/clientimpl.go:478–489  ·  view source on GitHub ↗

CloseAllModals closes all open modals with cancelled result This is called when the FE requests a resync (page refresh or new client)

()

Source from the content-addressed store, hash-verified

476// CloseAllModals closes all open modals with cancelled result
477// This is called when the FE requests a resync (page refresh or new client)
478func (c *ClientImpl) CloseAllModals() {
479 c.OpenModalsLock.Lock()
480 modalIds := make([]string, 0, len(c.OpenModals))
481 for modalId := range c.OpenModals {
482 modalIds = append(modalIds, modalId)
483 }
484 c.OpenModalsLock.Unlock()
485
486 for _, modalId := range modalIds {
487 c.CloseModal(modalId, false)
488 }
489}
490
491func (c *ClientImpl) DeclareSecret(name string, desc string, optional bool) {
492 c.SecretsLock.Lock()

Callers 1

processFrontendUpdateMethod · 0.80

Calls 1

CloseModalMethod · 0.95

Tested by

no test coverage detected