mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 07:16:01 +00:00
close search button
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
import socket from '../utility/socket';
|
||||
import axiosInstance from '../utility/axiosInstance';
|
||||
import openNewTab from '../utility/openNewTab';
|
||||
import CloseSearchButton from '../elements/CloseSearchButton.svelte';
|
||||
|
||||
let filter = '';
|
||||
let search = '';
|
||||
@@ -43,11 +44,16 @@
|
||||
socket.off('query-history-changed', reloadItems);
|
||||
};
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<SearchBoxWrapper>
|
||||
<SearchInput placeholder="Search query history" {filter} bind:value={filter} />
|
||||
<CloseSearchButton
|
||||
bind:filter
|
||||
on:click={() => {
|
||||
search = '';
|
||||
}}
|
||||
/>
|
||||
</SearchBoxWrapper>
|
||||
<WidgetsInnerContainer>
|
||||
{#each historyItems as item}
|
||||
@@ -98,5 +104,4 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user