fix: added viewType route in Sidebar link route for mobile view
This commit is contained in:
parent
bd23efaded
commit
8ce322870e
@ -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()
|
||||
|
||||
@ -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 },
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user