screen search text
This commit is contained in:
parent
c11cd9c3e2
commit
67d5eef293
1 changed files with 25 additions and 24 deletions
|
@ -85,31 +85,32 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div on:scroll={handleScroll} bind:this={screensContainer} class="content">
|
<div on:scroll={handleScroll} bind:this={screensContainer} class="content">
|
||||||
{#each filteredScreens as screen (screen._id)}
|
{#if filteredScreens?.length}
|
||||||
<NavItem
|
{#each filteredScreens as screen (screen._id)}
|
||||||
icon={screen.routing.homeScreen ? "Home" : null}
|
<NavItem
|
||||||
indentLevel={0}
|
icon={screen.routing.homeScreen ? "Home" : null}
|
||||||
selected={$store.selectedScreenId === screen._id}
|
indentLevel={0}
|
||||||
text={screen.routing.route}
|
selected={$store.selectedScreenId === screen._id}
|
||||||
on:click={() => store.actions.screens.select(screen._id)}
|
text={screen.routing.route}
|
||||||
rightAlignIcon
|
on:click={() => store.actions.screens.select(screen._id)}
|
||||||
showTooltip
|
rightAlignIcon
|
||||||
selectedBy={$userSelectedResourceMap[screen._id]}
|
showTooltip
|
||||||
>
|
selectedBy={$userSelectedResourceMap[screen._id]}
|
||||||
<DropdownMenu screenId={screen._id} />
|
>
|
||||||
<div slot="icon" class="icon">
|
<DropdownMenu screenId={screen._id} />
|
||||||
<RoleIndicator roleId={screen.routing.roleId} />
|
<div slot="icon" class="icon">
|
||||||
</div>
|
<RoleIndicator roleId={screen.routing.roleId} />
|
||||||
</NavItem>
|
</div>
|
||||||
{/each}
|
</NavItem>
|
||||||
|
{/each}
|
||||||
|
{:else}
|
||||||
|
<Layout paddingY="L" paddingX="L">
|
||||||
|
<Body size="S">
|
||||||
|
There aren't any screens matching the current filters
|
||||||
|
</Body>
|
||||||
|
</Layout>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if !filteredScreens?.length}
|
|
||||||
<Layout paddingY="" paddingX="L">
|
|
||||||
<Body size="S">
|
|
||||||
There aren't any screens matching the current filters
|
|
||||||
</Body>
|
|
||||||
</Layout>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="newScreen" class:newScreenVisible={newScreen}>
|
<div class="newScreen" class:newScreenVisible={newScreen}>
|
||||||
|
|
Loading…
Reference in a new issue