We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b527bd1 commit cd29f5dCopy full SHA for cd29f5d
src/routes/(console)/organization-[organization]/createProjectCloud.svelte
@@ -11,6 +11,7 @@
11
import { base } from '$app/paths';
12
import CreateProject from '$lib/layout/createProject.svelte';
13
import { Modal } from '$lib/components';
14
+ import { currentPlan } from '$lib/stores/organization';
15
16
const teamId = page.params.organization;
17
export let regions: Array<Models.ConsoleRegion> = [];
@@ -70,6 +71,10 @@
70
71
{regions}>
72
</CreateProject>
73
<svelte:fragment slot="footer">
- <Button.Button type="submit" variant="primary" size="s">Create</Button.Button>
74
+ <Button.Button
75
+ disabled={projects && projects >= $currentPlan?.projects}
76
+ type="submit"
77
+ variant="primary"
78
+ size="s">Create</Button.Button>
79
</svelte:fragment>
80
</Modal>
0 commit comments