From 64752bbacece074baa2a5a7728ce8f3dd31d06a2 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 6 Sep 2024 12:44:20 +0200 Subject: [PATCH 1/2] feat: refs #7847 remove reload btn --- src/components/ui/VnFilterPanel.vue | 38 +++++++++-------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 931767516..330811fab 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -231,32 +231,18 @@ function sanitizer(params) { -
- - {{ t('Remove filters') }} - - - {{ t('Refresh') }} - -
+ + {{ t('Remove filters') }} +
-- 2.40.1 From 2f7dd3c22e30c5d875148bc9cbaff1f1470e79df Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 6 Sep 2024 12:49:33 +0200 Subject: [PATCH 2/2] feat: refs #7847 remove reload fn --- src/components/ui/VnFilterPanel.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 330811fab..cebdc4bbf 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -132,17 +132,6 @@ async function search(evt) { } } -async function reload() { - isLoading.value = true; - const params = Object.values(userParams.value).filter((param) => param); - store.skip = 0; - store.page = 1; - await arrayData.fetch({ append: false }); - if (!$props.showAll && !params.length) store.data = []; - isLoading.value = false; - emit('refresh'); -} - async function clearFilters() { try { isLoading.value = true; -- 2.40.1