Fix TypeAheadSearch.svelte, Remove Logout

This commit is contained in:
2024-01-07 13:38:27 +01:00
parent dd85aeca7b
commit 076fc7046d
3 changed files with 5 additions and 19 deletions

View File

@@ -34,7 +34,7 @@
let searchValue: string = "";
let dirty = false;
let selectedPath: string = "";
let selectedPath: string | null = null;
let pathSearchValue: string = "";
$: availableBranches = $branches.map((branch) => ({
@@ -121,7 +121,7 @@
<div class="border-b border-b-gray-600 pb-2 flex justify-between">
<div>
<TypeAheadSearch items={availableBranches} bind:selected={selectedBranch} bind:searchValue />
<TypeAheadSearch items={Array.from(pagesMap.keys()).map(value => ({value, name: value}))} bind:selected={selectedPath} bind:searchValue={pathSearchValue} maxItems={Number.MAX_VALUE} />
<TypeAheadSearch items={Array.from(pagesMap.keys()).map(value => ({value, name: value}))} bind:selected={selectedPath} bind:searchValue={pathSearchValue} maxItems={Number.MAX_VALUE} leftText={true} />
</div>
<div>
{#if selectedBranch !== "master"}