File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/routes/(console)/project-[region]-[project] Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
import { page } from ' $app/state' ;
3
3
import { Container } from ' $lib/layout' ;
4
4
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 ) {
6
7
id = id .replace (' /(console)/project-[region]-[project]/' , ' ' );
7
8
let parts = id .split (' /' );
8
9
const resource = parts [0 ];
15
16
{#if page .error .type === ' general_resource_blocked' }
16
17
{@const resource = getResource (page .route .id )}
17
18
<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 >
19
20
<p class =" text-red-500" >
20
21
We've detected unusual activity and temporarily paused your {resource }. If you
21
22
believe this is a mistake or need urgent access, please contact
[email protected] .
You can’t perform that action at this time.
0 commit comments