Merge pull request #164 from shariquerik/add-support-link-in-user-dropdown
fix: added support & docs link in userdropdown menu
This commit is contained in:
commit
2d5a59826c
@ -77,12 +77,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-2 flex flex-col gap-1">
|
||||
<SidebarLink
|
||||
label="Docs"
|
||||
:isCollapsed="isSidebarCollapsed"
|
||||
icon="book-open"
|
||||
@click="() => openDocs()"
|
||||
/>
|
||||
<SidebarLink
|
||||
:label="isSidebarCollapsed ? 'Expand' : 'Collapse'"
|
||||
:isCollapsed="isSidebarCollapsed"
|
||||
@ -231,8 +225,4 @@ function getIcon(routeName) {
|
||||
return PinIcon
|
||||
}
|
||||
}
|
||||
|
||||
function openDocs() {
|
||||
window.open('https://docs.frappe.io/crm', '_blank')
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -67,14 +67,36 @@ const user = computed(() => getUser() || {})
|
||||
|
||||
let dropdownOptions = ref([
|
||||
{
|
||||
icon: 'corner-up-left',
|
||||
label: computed(() => __('Switch to Desk')),
|
||||
onClick: () => window.location.replace('/app'),
|
||||
group: 'Manage',
|
||||
hideLabel: true,
|
||||
items: [
|
||||
{
|
||||
icon: 'corner-up-left',
|
||||
label: computed(() => __('Switch to Desk')),
|
||||
onClick: () => window.location.replace('/app'),
|
||||
},
|
||||
{
|
||||
icon: 'life-buoy',
|
||||
label: computed(() => __('Support')),
|
||||
onClick: () => window.open('https://t.me/frappecrm', '_blank'),
|
||||
},
|
||||
{
|
||||
icon: 'book-open',
|
||||
label: computed(() => __('Docs')),
|
||||
onClick: () => window.open('https://docs.frappe.io/crm', '_blank'),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: 'log-out',
|
||||
label: computed(() => __('Log out')),
|
||||
onClick: () => logout.submit(),
|
||||
group: 'Logout',
|
||||
hideLabel: true,
|
||||
items: [
|
||||
{
|
||||
icon: 'log-out',
|
||||
label: computed(() => __('Log out')),
|
||||
onClick: () => logout.submit(),
|
||||
},
|
||||
],
|
||||
},
|
||||
])
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user