mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix-6279-wrong-validation-of-projectid
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
export let id: string;
|
||||
export let autofocus = true;
|
||||
export let fullWidth = false;
|
||||
|
||||
export let isProject = false;
|
||||
$: if (!show) {
|
||||
id = null;
|
||||
}
|
||||
@@ -29,7 +29,7 @@
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="content">
|
||||
<div class="form">
|
||||
{#if name === 'Project'}
|
||||
{#if isProject === true}
|
||||
<InputProjectId bind:value={id} {autofocus} />
|
||||
{:else}
|
||||
<InputId bind:value={id} {autofocus} />
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
</Pill>
|
||||
</div>
|
||||
{:else}
|
||||
<CustomId bind:show={showCustomId} name="Project" bind:id />
|
||||
<CustomId bind:show={showCustomId} name="Project" isProject={true} bind:id />
|
||||
{/if}
|
||||
<Button fullWidth submit disabled={name === ''} event="create_project">
|
||||
Create project
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</Pill>
|
||||
</div>
|
||||
{:else}
|
||||
<CustomId bind:show={showCustomId} name="Project" bind:id />
|
||||
<CustomId bind:show={showCustomId} name="Project" isProject={true} bind:id />
|
||||
{/if}
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
|
||||
Reference in New Issue
Block a user