Fix-6279-wrong-validation-of-projectid

This commit is contained in:
Nikhil
2023-10-17 18:06:25 +05:30
parent eed2ccae27
commit b91b8b7fa3
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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} />
+1 -1
View File
@@ -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">