File tree Expand file tree Collapse file tree 3 files changed +24
-32
lines changed
src/routes/(console)/project-[region]-[project]/settings/domains Expand file tree Collapse file tree 3 files changed +24
-32
lines changed Original file line number Diff line number Diff line change 56
56
await goto (routeBase );
57
57
await invalidate (Dependencies .DOMAINS );
58
58
} else {
59
- await goto (
60
- ` ${routeBase }/add-domain/verify-${domainName }?rule=${rule .$id }&domain=${domain .$id } `
61
- );
59
+ let redirect = ` ${routeBase }/add-domain/verify-${domainName }?rule=${rule .$id } ` ;
60
+
61
+ if (isCloud ) {
62
+ /**
63
+ * Domains are only on cloud!
64
+ * Self-hosted instances have rules.
65
+ */
66
+ redirect += ` &domain=${domain .$id } ` ;
67
+ }
68
+
69
+ await goto (redirect );
62
70
await invalidate (Dependencies .DOMAINS );
63
71
}
64
72
} catch (error ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
} from ' @appwrite.io/pink-svelte' ;
16
16
import DeleteDomainModal from ' ./deleteDomainModal.svelte' ;
17
17
import RetryDomainModal from ' ./retryDomainModal.svelte' ;
18
- import { columns } from ' ./store' ;
19
18
import { regionalProtocol } from ' ../../store' ;
20
19
21
20
let {
27
26
let showDelete = $state (false );
28
27
let showRetry = $state (false );
29
28
let selectedDomain: Models .ProxyRule = $state (null );
29
+
30
+ const columns = [
31
+ {
32
+ id: ' domain' ,
33
+ title: ' Domain' ,
34
+ type: ' string' ,
35
+ format: ' string' ,
36
+ width: { min: 200 , max: 550 }
37
+ }
38
+ ];
30
39
</script >
31
40
32
- <Table .Root columns ={[... $ columns , { id: ' actions' , width: 40 }]} let:root >
41
+ <Table .Root columns ={[... columns , { id: ' actions' , width: 40 }]} let:root >
33
42
<svelte:fragment slot =" header" let:root >
34
- {#each $ columns as { id, title }}
43
+ {#each columns as { id, title }}
35
44
<Table .Header .Cell column ={id } {root }>
36
45
{title }
37
46
</Table .Header .Cell >
40
49
</svelte:fragment >
41
50
{#each domains .rules as domain }
42
51
<Table .Row .Base {root }>
43
- {#each $ columns as column }
52
+ {#each columns as column }
44
53
<Table .Cell column ={column .id } {root }>
45
54
{#if column .id === ' domain' }
46
55
<Layout .Stack direction =" row" gap =" xs" >
You can’t perform that action at this time.
0 commit comments