File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/routes/(console)/project-[region]-[project]/settings Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
import { goto } from ' $app/navigation' ;
3
3
import { base } from ' $app/paths' ;
4
4
import { Submit , trackEvent , trackError } from ' $lib/actions/analytics' ;
5
- import { BoxAvatar , CardGrid } from ' $lib/components' ;
5
+ import { BoxAvatar , Confirm , CardGrid } from ' $lib/components' ;
6
6
import { Button , InputText } from ' $lib/elements/forms' ;
7
7
import { toLocaleDateTime } from ' $lib/helpers/date' ;
8
8
import { addNotification } from ' $lib/stores/notifications' ;
9
9
import { sdk } from ' $lib/stores/sdk' ;
10
10
import { isCloud } from ' $lib/system' ;
11
- import Confirm from ' $lib/components/confirm.svelte' ;
12
11
import { project , projectRegion } from ' ../store' ;
13
12
import { organization } from ' $lib/stores/organization' ;
14
13
14
+ let error: string ;
15
15
let showDelete = false ;
16
16
let name: string = null ;
17
- let error: string ;
18
17
19
18
const handleDelete = async () => {
20
19
try {
21
- await sdk .forConsole .projects .delete ($project .$id );
20
+ // send the project to correct region pool for deletion!
21
+ await sdk .forConsoleIn ($project .region ).projects .delete ($project .$id );
22
22
showDelete = false ;
23
23
addNotification ({
24
24
type: ' success' ,
You can’t perform that action at this time.
0 commit comments