Skip to content

Commit 555a8e3

Browse files
committed
improve message
1 parent f25bcdd commit 555a8e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/(console)/project-[region]-[project]/+error.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import { page } from '$app/state';
33
import { Container } from '$lib/layout';
44
import { Card, Typography } from '@appwrite.io/pink-svelte';
5-
function getResource(id: string) {
5+
import { capitalize } from '$lib/helpers/string';
6+
function getResource(id: string) {
67
id = id.replace('/(console)/project-[region]-[project]/', '');
78
let parts = id.split('/');
89
const resource = parts[0];
@@ -15,7 +16,7 @@
1516
{#if page.error.type === 'general_resource_blocked'}
1617
{@const resource = getResource(page.route.id)}
1718
<Card.Base>
18-
<Typography.Title size="s">Your {resource} is paused</Typography.Title>
19+
<Typography.Title size="s">Your {capitalize(resource)} is paused</Typography.Title>
1920
<p class="text-red-500">
2021
We've detected unusual activity and temporarily paused your {resource}. If you
2122
believe this is a mistake or need urgent access, please contact [email protected].

0 commit comments

Comments
 (0)