Search function for the Keyboard Shortcuts #239

This commit is contained in:
Jan Prochazka
2022-03-03 12:29:20 +01:00
parent be90241091
commit 8d7c7481b4
2 changed files with 32 additions and 13 deletions

View File

@@ -4,15 +4,17 @@
import InlineButton from './InlineButton.svelte';
export let filter;
export let showDisabled = false;
</script>
{#if filter}
{#if filter || showDisabled}
<InlineButton
on:click
on:click={() => {
filter = '';
}}
title="Clear filter"
disabled={!filter}
>
<FontIcon icon="icon close" />
</InlineButton>