From 998d7857afa7b77a18a2b6367c8182e17b2326b9 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 21 May 2025 17:54:50 +0530 Subject: [PATCH] fix: added about link in standard_dropdown_items in hook.py (cherry picked from commit dc3ccdddd439d272ed002dc05f17bc3007972afc) --- crm/hooks.py | 8 ++++++++ frontend/src/components/UserDropdown.vue | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/crm/hooks.py b/crm/hooks.py index ec227f0d..3dcc2c4c 100644 --- a/crm/hooks.py +++ b/crm/hooks.py @@ -287,6 +287,14 @@ standard_dropdown_items = [ "route": "#", "is_standard": 1, }, + { + "name1": "about", + "label": "About", + "type": "Route", + "icon": "info", + "route": "#", + "is_standard": 1, + }, { "name1": "separator", "label": "", diff --git a/frontend/src/components/UserDropdown.vue b/frontend/src/components/UserDropdown.vue index 5ae6ba05..5397b137 100644 --- a/frontend/src/components/UserDropdown.vue +++ b/frontend/src/components/UserDropdown.vue @@ -55,7 +55,11 @@ import Apps from '@/components/Apps.vue' import { sessionStore } from '@/stores/session' import { usersStore } from '@/stores/users' import { getSettings } from '@/stores/settings' -import { showSettings, isMobileView } from '@/composables/settings' +import { + showSettings, + isMobileView, + showAboutModal, +} from '@/composables/settings' import { confirmLoginToFrappeCloud } from '@/composables/frappecloud' import { Dropdown } from 'frappe-ui' import { theme, toggleTheme } from '@/stores/theme' @@ -151,6 +155,12 @@ function getStandardItem(item) { onClick: () => confirmLoginToFrappeCloud(), condition: () => !isMobileView.value && window.is_fc_site, } + case 'about': + return { + icon: item.icon, + label: __(item.label), + onClick: () => (showAboutModal.value = true), + } case 'logout': return { icon: item.icon,