1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Updates snapshots and fixes bugs

This commit is contained in:
Amir Raminfar
2021-11-22 14:22:04 -08:00
parent cdca0efd05
commit da35a13d04
10 changed files with 32 additions and 33 deletions

View File

@@ -28,9 +28,8 @@ import { search } from "@/composables/settings";
import { useSearchFilter } from "@/composables/search";
import { ref, nextTick, onMounted, onUnmounted } from "vue";
const showSearch = ref(false);
const input = ref<HTMLInputElement>();
const { searchFilter } = useSearchFilter();
const { searchFilter, showSearch } = useSearchFilter();
onMounted(() => {
hotkeys("command+f, ctrl+f", (event, handler) => {
@@ -43,11 +42,13 @@ onMounted(() => {
onUnmounted(() => {
searchFilter.value = "";
showSearch.value = false;
hotkeys.unbind("command+f, ctrl+f");
hotkeys.unbind("esc");
});
function resetSearch() {
searchFilter.value = "";
showSearch.value = false;
}
</script>