fix: added viewType route in Sidebar link route for mobile view

This commit is contained in:
Shariq Ansari 2024-06-03 12:33:31 +05:30
parent bd23efaded
commit 8ce322870e
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@
</Section>
</div>
</div>
<div v-if="!isMobileView" class="m-2 flex flex-col gap-1">
<div class="m-2 flex flex-col gap-1">
<SidebarLink
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
:isCollapsed="isSidebarCollapsed"
@ -116,7 +116,6 @@ import { notificationsStore } from '@/stores/notifications'
import { FeatherIcon } from 'frappe-ui'
import { useStorage } from '@vueuse/core'
import { computed, h } from 'vue'
import { isMobileView } from '@/stores/settings'
const { getPinnedViews, getPublicViews } = viewsStore()
const { toggle: toggleNotificationPanel } = notificationsStore()

View File

@ -184,6 +184,7 @@ function parseView(views) {
icon: getIcon(view.route_name, view.icon),
to: {
name: view.route_name,
params: { viewType: view.type || 'list' },
query: { view: view.name },
},
}