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

Method CloseModal

tsunami/engine/clientimpl.go:468–474  ·  view source on GitHub ↗

CloseModal closes a modal with the given result

(modalId string, result bool)

Source from the content-addressed store, hash-verified

466
467// CloseModal closes a modal with the given result
468func (c *ClientImpl) CloseModal(modalId string, result bool) {
469 modalState := c.removeModalFromMap(modalId)
470 if modalState != nil {
471 modalState.ResultChan <- result
472 close(modalState.ResultChan)
473 }
474}
475
476// CloseAllModals closes all open modals with cancelled result
477// This is called when the FE requests a resync (page refresh or new client)

Callers 3

ShowModalMethod · 0.95
CloseAllModalsMethod · 0.95
handleModalResultMethod · 0.80

Calls 1

removeModalFromMapMethod · 0.95

Tested by

no test coverage detected