fix(custom-widgets): stabilize commands and resolve dismissed confirmations
This commit is contained in:
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) },
|
||||
);
|
||||
}),
|
||||
}),
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user