File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/routes/(console)/organization-[organization] Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 19
19
let id: string = null ;
20
20
let name: string = ' Appwrite project' ;
21
21
let region: string = Region .Fra ;
22
+ let error: string = null ;
22
23
23
24
async function onFinish() {
24
25
await invalidate (Dependencies .FUNCTIONS );
45
46
await onFinish ();
46
47
await goto (` ${base }/project-${project .region }-${project .$id } ` );
47
48
} catch (e ) {
48
- addNotification ({
49
- type: ' error' ,
50
- message: e .message
51
- });
52
49
trackError (e , Submit .ProjectCreate );
50
+ error = e .message ;
53
51
}
54
52
}
55
53
56
54
onDestroy (() => {
57
55
id = null ;
58
56
name = null ;
59
57
region = ' fra' ;
58
+ error = null ;
60
59
});
61
60
</script >
62
61
63
- <Modal bind:show ={showCreateProjectCloud } title ={' Create project' } onSubmit ={create }>
62
+ <Modal bind:show ={showCreateProjectCloud } title ={' Create project' } onSubmit ={create } bind:error >
64
63
<CreateProject showTitle ={false } bind:id bind:projectName ={name } bind:region {regions }>
65
64
</CreateProject >
66
65
<svelte:fragment slot =" footer" >
You can’t perform that action at this time.
0 commit comments