fix: added about link in standard_dropdown_items in hook.py
This commit is contained in:
parent
807eb4a7d9
commit
dc3ccdddd4
@ -287,6 +287,14 @@ standard_dropdown_items = [
|
|||||||
"route": "#",
|
"route": "#",
|
||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name1": "about",
|
||||||
|
"label": "About",
|
||||||
|
"type": "Route",
|
||||||
|
"icon": "info",
|
||||||
|
"route": "#",
|
||||||
|
"is_standard": 1,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name1": "separator",
|
"name1": "separator",
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@ -55,7 +55,11 @@ import Apps from '@/components/Apps.vue'
|
|||||||
import { sessionStore } from '@/stores/session'
|
import { sessionStore } from '@/stores/session'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
import { getSettings } from '@/stores/settings'
|
import { getSettings } from '@/stores/settings'
|
||||||
import { showSettings, isMobileView } from '@/composables/settings'
|
import {
|
||||||
|
showSettings,
|
||||||
|
isMobileView,
|
||||||
|
showAboutModal,
|
||||||
|
} from '@/composables/settings'
|
||||||
import { confirmLoginToFrappeCloud } from '@/composables/frappecloud'
|
import { confirmLoginToFrappeCloud } from '@/composables/frappecloud'
|
||||||
import { Dropdown } from 'frappe-ui'
|
import { Dropdown } from 'frappe-ui'
|
||||||
import { theme, toggleTheme } from '@/stores/theme'
|
import { theme, toggleTheme } from '@/stores/theme'
|
||||||
@ -151,6 +155,12 @@ function getStandardItem(item) {
|
|||||||
onClick: () => confirmLoginToFrappeCloud(),
|
onClick: () => confirmLoginToFrappeCloud(),
|
||||||
condition: () => !isMobileView.value && window.is_fc_site,
|
condition: () => !isMobileView.value && window.is_fc_site,
|
||||||
}
|
}
|
||||||
|
case 'about':
|
||||||
|
return {
|
||||||
|
icon: item.icon,
|
||||||
|
label: __(item.label),
|
||||||
|
onClick: () => (showAboutModal.value = true),
|
||||||
|
}
|
||||||
case 'logout':
|
case 'logout':
|
||||||
return {
|
return {
|
||||||
icon: item.icon,
|
icon: item.icon,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user