MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / requestConfirmation

Function requestConfirmation

src/utils/confirmation.ts:18–29  ·  view source on GitHub ↗
(request: ConfirmationRequest)

Source from the content-addressed store, hash-verified

16}
17
18export function requestConfirmation(request: ConfirmationRequest): Promise<boolean> {
19 if (confirmationHandler) {
20 return confirmationHandler(request);
21 }
22
23 if (typeof window === 'undefined') {
24 return Promise.resolve(false);
25 }
26
27 const prompt = `${request.title}\n\n${request.message}`;
28 return Promise.resolve(window.confirm(prompt));
29}

Callers 7

SettingsPanelFunction · 0.90
ExportPanel.tsxFile · 0.90
DropZoneFunction · 0.90
ProfileSelectorFunction · 0.90
confirmReloadFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected