This commit is contained in:
ThatOneCalculator 2022-12-05 22:14:26 -08:00
parent c31d7133e6
commit a220833a61

View File

@ -2,14 +2,14 @@
<XModalWindow <XModalWindow
ref="dialog" ref="dialog"
:width="400" :width="400"
@close="dialog.close()" @close="dialog!.close()"
@closed="$emit('closed')" @closed="$emit('closed')"
> >
<template #header>{{ i18n.ts.signup }}</template> <template #header>{{ i18n.ts.signup }}</template>
<div class="_monolithic_"> <div class="_monolithic_">
<div class="_section"> <div class="_section">
<XSignup :auto-set="autoSet" @signup="onSignup" @signupEmailPending="onSignupEmailPending"/> <XSignup :auto-set="autoSet" @signup="onSignup" @signup-email-pending="onSignupEmailPending"/>
</div> </div>
</div> </div>
</XModalWindow> </XModalWindow>
@ -36,10 +36,10 @@ const dialog = $ref<InstanceType<typeof XModalWindow>>();
function onSignup(res) { function onSignup(res) {
emit('done', res); emit('done', res);
dialog.close(); dialog?.close();
} }
function onSignupEmailPending() { function onSignupEmailPending() {
dialog.close(); dialog?.close();
} }
</script> </script>