mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 05:26:00 +00:00
Search function for the Keyboard Shortcuts #239
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user