MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / asyncDialog

Function asyncDialog

apps/client/src/code/utils/misc.ts:13–24  ·  view source on GitHub ↗
(opts: QDialogOptions)

Source from the content-addressed store, hash-verified

11import type { QDialogOptions } from 'quasar';
12
13export async function asyncDialog<T = any>(opts: QDialogOptions): Promise<T> {
14 return new Promise((resolve, reject) => {
15 $quasar()
16 .dialog(opts)
17 .onOk(async (output: T) => {
18 resolve(output);
19 })
20 .onCancel(() => {
21 reject();
22 });
23 });
24}
25
26export function handleError(error: any, logger = mainLogger) {
27 if (error == null) {

Callers 4

createPageFunction · 0.90
step1Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected