From b63328f97cccd108f65b48bebdd0c90540b196cf Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 4 Feb 2025 16:48:46 +0100 Subject: [PATCH] fix: journal double api fetching --- src/components/JournalView/JournalOptions.vue | 5 ++--- src/views/JournalDispatchers.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/JournalView/JournalOptions.vue b/src/components/JournalView/JournalOptions.vue index ac4c5f5..cabc030 100644 --- a/src/components/JournalView/JournalOptions.vue +++ b/src/components/JournalView/JournalOptions.vue @@ -188,14 +188,14 @@ export default defineComponent({ if (!value || value == '') return; if (value.length < 3) return; - this.startSearchTimeout('driver', value); + if (this.showOptions) this.startSearchTimeout('driver', value); }, async 'searchersValues.search-dispatcher'(value: string | undefined) { if (!value || value == '') return; if (value.length < 3) return; - this.startSearchTimeout('dispatcher', value); + if (this.showOptions) this.startSearchTimeout('dispatcher', value); } }, @@ -283,7 +283,6 @@ export default defineComponent({ }, searchConfirm() { - this.$emit('onSearchConfirm'); this.handleRouteParams(); }, diff --git a/src/views/JournalDispatchers.vue b/src/views/JournalDispatchers.vue index eece977..5ccee85 100644 --- a/src/views/JournalDispatchers.vue +++ b/src/views/JournalDispatchers.vue @@ -272,7 +272,7 @@ export default defineComponent({ this.scrollDataLoaded = true; }, - async fetchHistoryData() { + async fetchHistoryData() { const queryParams: DispatchersQueryParams = {}; const dispatcherName = this.searchersValues['search-dispatcher'].trim() || undefined;