CloseModal closes a modal with the given result
(modalId string, result bool)
| 466 | |
| 467 | // CloseModal closes a modal with the given result |
| 468 | func (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) |
no test coverage detected