From c86e78267d935969674eac981020f90a404335c0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 31 May 2024 18:11:44 +0530 Subject: [PATCH] fix: show group by button if view type is group_by --- frontend/src/components/ViewControls.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/ViewControls.vue b/frontend/src/components/ViewControls.vue index 1a33112f..4e0efa40 100644 --- a/frontend/src/components/ViewControls.vue +++ b/frontend/src/components/ViewControls.vue @@ -74,11 +74,7 @@ :name="currentView.icon" class="h-4" /> - + + route.params.viewType || 'list') + function getViewType() { - let type = route.params.viewType || 'list' let types = { group_by: { label: __('Group By View'), @@ -328,7 +332,7 @@ function getViewType() { }, } - return types[type] + return types[currentViewType.value] } const currentView = computed(() => {