mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1807 from appwrite/fix-usage-urls
Fix: urls as per region.
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
buttons={[
|
||||
{
|
||||
slot: 'SMTP settings',
|
||||
href: `${base}/project-${data.project.$id}/settings/smtp`
|
||||
href: `${base}/project-${data.project.region}-${data.project.$id}/settings/smtp`
|
||||
}
|
||||
]}>
|
||||
<svelte:fragment slot="title">
|
||||
@@ -213,7 +213,9 @@
|
||||
</Collapsible>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="actions">
|
||||
<Button href={`${base}/project-${data.project.$id}/settings/smtp`} secondary>
|
||||
<Button
|
||||
href={`${base}/project-${data.project.region}-${data.project.$id}/settings/smtp`}
|
||||
secondary>
|
||||
SMTP settings
|
||||
</Button>
|
||||
</svelte:fragment>
|
||||
|
||||
+3
-3
@@ -19,17 +19,17 @@
|
||||
<Heading tag="h2" size="5">Functions</Heading>
|
||||
<SecondaryTabs>
|
||||
<SecondaryTabsItem
|
||||
href={`${base}/project-${data.project.$id}/functions/function-${data.function.$id}/usage/24h`}
|
||||
href={`${base}/project-${data.project.region}-${data.project.$id}/functions/function-${data.function.$id}/usage/24h`}
|
||||
disabled={($page.params.period ?? '24h') === '24h'}>
|
||||
24h
|
||||
</SecondaryTabsItem>
|
||||
<SecondaryTabsItem
|
||||
href={`${base}/project-${data.project.$id}/functions/function-${data.function.$id}/usage/30d`}
|
||||
href={`${base}/project-${data.project.region}-${data.project.$id}/functions/function-${data.function.$id}/usage/30d`}
|
||||
disabled={$page.params.period === '30d'}>
|
||||
30d
|
||||
</SecondaryTabsItem>
|
||||
<SecondaryTabsItem
|
||||
href={`${base}/project-${data.project.$id}/functions/function-${data.function.$id}/usage/90d`}
|
||||
href={`${base}/project-${data.project.region}-${data.project.$id}/functions/function-${data.function.$id}/usage/90d`}
|
||||
disabled={$page.params.period === '90d'}>
|
||||
90d
|
||||
</SecondaryTabsItem>
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
|
||||
export let data;
|
||||
|
||||
$: baseRoute = `${base}/project-${data.project.$id}`;
|
||||
$: baseRoute = `${base}/project-${data.project.region}-${data.project.$id}`;
|
||||
$: network = data.usage.network;
|
||||
$: users = data.usage.users;
|
||||
$: usersTotal = data.usage.usersTotal;
|
||||
|
||||
Reference in New Issue
Block a user