Fix backspace in transcript search

This commit is contained in:
rxdn 2022-06-16 14:00:14 +01:00
parent 64b162e7e6
commit 0ba71b9361
3 changed files with 12 additions and 3 deletions

View File

@ -87,7 +87,7 @@
{#if withCreateButton}
<div class="row" style="justify-content: center; margin-top: 10px">
<Button type="submit" icon="fas fa-plus">Add Input</Button>
<Button type="submit" icon="fas fa-plus" {disabled}>Add Input</Button>
</div>
{/if}
</form>
@ -108,6 +108,7 @@
export let withSaveButton = false;
export let withDeleteButton = false;
export let withDirectionButtons = false;
export let disabled = false;
export let index;
export let formLength;

View File

@ -53,7 +53,7 @@
{/if}
{#if activeFormId !== null}
<FormInputRow bind:data={inputCreationData} withCreateButton={true}
<FormInputRow bind:data={inputCreationData} withCreateButton={true} disabled={formLength >= 5}
on:create={(e) => createInput(e.detail)}/>
{/if}
</div>

View File

@ -135,11 +135,19 @@
let handleInputUsername = () => {
filterSettings.ticketId = undefined;
filterSettings.userId = undefined;
if (filterSettings.username === "") {
filterSettings.username = undefined;
}
};
let handleInputUserId = () => {
filterSettings.ticketId = undefined;
filterSettings.username = undefined;
if (filterSettings.userId === "") {
filterSettings.userId = undefined;
}
};
let loading = false;