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>
|
</Section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isMobileView" class="m-2 flex flex-col gap-1">
|
<div class="m-2 flex flex-col gap-1">
|
||||||
<SidebarLink
|
<SidebarLink
|
||||||
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
|
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
|
||||||
:isCollapsed="isSidebarCollapsed"
|
:isCollapsed="isSidebarCollapsed"
|
||||||
@ -116,7 +116,6 @@ import { notificationsStore } from '@/stores/notifications'
|
|||||||
import { FeatherIcon } from 'frappe-ui'
|
import { FeatherIcon } from 'frappe-ui'
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core'
|
||||||
import { computed, h } from 'vue'
|
import { computed, h } from 'vue'
|
||||||
import { isMobileView } from '@/stores/settings'
|
|
||||||
|
|
||||||
const { getPinnedViews, getPublicViews } = viewsStore()
|
const { getPinnedViews, getPublicViews } = viewsStore()
|
||||||
const { toggle: toggleNotificationPanel } = notificationsStore()
|
const { toggle: toggleNotificationPanel } = notificationsStore()
|
||||||
|
|||||||
@ -184,6 +184,7 @@ function parseView(views) {
|
|||||||
icon: getIcon(view.route_name, view.icon),
|
icon: getIcon(view.route_name, view.icon),
|
||||||
to: {
|
to: {
|
||||||
name: view.route_name,
|
name: view.route_name,
|
||||||
|
params: { viewType: view.type || 'list' },
|
||||||
query: { view: view.name },
|
query: { view: view.name },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user