fix(custom-widgets): stabilize commands and resolve dismissed confirmations

This commit is contained in:
ajnart committed 2026-09-12 14:09:41 +02:00
1 parent 8f152f1929
commit de75c5f29d
3 files changed
+22 -10

No files matched your search

@@ -147,13 +147,16 @@ export function TrustedWidgetHost({
resolve(false);
return;
}
openConfirmModal({
title,
children: message,
confirmProps: { color: destructive ? "red" : undefined },
onConfirm: () => resolve(true),
onCancel: () => resolve(false),
});
openConfirmModal(
{
title,
children: message,
confirmProps: { color: destructive ? "red" : undefined },
onConfirm: () => resolve(true),
onCancel: () => resolve(false),
},
{ onClose: () => resolve(false) },
);
}),
}),
[