fix: added about link in standard_dropdown_items in hook.py

(cherry picked from commit dc3ccdddd439d272ed002dc05f17bc3007972afc)
This commit is contained in:
Shariq Ansari 2025-05-21 17:54:50 +05:30 committed by Mergify
parent cc88d66de4
commit 998d7857af
2 changed files with 19 additions and 1 deletions

View File

@ -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": "",

View File

@ -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,