File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 41
41
42
42
let verified = $state (false );
43
43
44
- let error = $state (null );
45
44
async function retryDomain() {
46
45
try {
47
46
const domain = await sdk
56
55
});
57
56
trackEvent (Submit .DomainUpdateVerification );
58
57
} catch (e ) {
59
- error = e .message ;
58
+ addNotification ({
59
+ type: ' error' ,
60
+ message:
61
+ ' Domain verification failed. Please check your domain settings or try again later'
62
+ });
60
63
trackError (e , Submit .DomainUpdateVerification );
61
64
}
62
65
}
63
-
64
- $effect (() => {
65
- if (! show ) {
66
- error = null ;
67
- }
68
- });
69
66
</script >
70
67
71
- <Modal title ="Retry verification" bind:show onSubmit ={retryDomain } bind:error >
68
+ <Modal title ="Retry verification" bind:show onSubmit ={retryDomain }>
72
69
<div >
73
70
<Tabs .Root variant =" secondary" let:root >
74
71
{#if isSubDomain && !! $regionalConsoleVariables ._APP_DOMAIN_TARGET_CNAME && $regionalConsoleVariables ._APP_DOMAIN_TARGET_CNAME !== ' localhost' }
You can’t perform that action at this time.
0 commit comments