MCPcopy
hub / github.com/brimdata/zui / showMessageBox

Function showMessageBox

apps/zui/src/js/lib/System.ts:3–10  ·  view source on GitHub ↗
(opts: Electron.MessageBoxOptions)

Source from the content-addressed store, hash-verified

1import {invoke} from "src/core/invoke"
2
3export function showMessageBox(opts: Electron.MessageBoxOptions) {
4 if (global.env.isIntegrationTest) {
5 return Promise.resolve({response: 0})
6 // To do, mock the options and give the test case a way to select some
7 } else {
8 return invoke("showMessageBoxOp", opts)
9 }
10}

Callers 4

onRemoveFunction · 0.90
buildAndAuthenticateLakeFunction · 0.90
delete-queries.tsFile · 0.90
delete-pools.tsFile · 0.90

Calls 2

invokeFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected