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

Function confirmReload

src/store/actions/sessionActions.ts:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 * should proceed. Skips the prompt when there's nothing to lose.
38 */
39export async function confirmReload(): Promise<boolean> {
40 if (!hasUnsavedReloadState()) return true;
41 return requestConfirmation({
42 title: 'Reload data?',
43 message: 'Reloading will discard current/applied transforms and any pending deletions.',
44 confirmLabel: 'Reload',
45 tone: 'danger',
46 });
47}
48
49/**
50 * Reset the entire session to initial state.

Callers 2

ExportPanel.tsxFile · 0.85

Calls 2

hasUnsavedReloadStateFunction · 0.85
requestConfirmationFunction · 0.85

Tested by

no test coverage detected