HEL-783: repair readable dialogue, birth explanations and complete real page layouts
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// An open dirty form can defer a navigation until its confirmation resolves.
|
||||
export function leaveSettingsThen(action: () => void) {
|
||||
if (window.dispatchEvent(new CustomEvent('cg:leave-settings', { cancelable: true, detail: action }))) action();
|
||||
}
|
||||
Reference in New Issue
Block a user