mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
refactor: use variables for app name, title, and home route in hooks
This commit is contained in:
@@ -12,10 +12,10 @@ app_home = "/app/home"
|
|||||||
|
|
||||||
add_to_apps_screen = [
|
add_to_apps_screen = [
|
||||||
{
|
{
|
||||||
"name": "erpnext",
|
"name": app_name,
|
||||||
"logo": "/assets/erpnext/images/erpnext-logo-blue.png",
|
"logo": "/assets/erpnext/images/erpnext-logo-blue.png",
|
||||||
"title": "ERPNext",
|
"title": app_title,
|
||||||
"route": "/app/home",
|
"route": app_home,
|
||||||
"has_permission": "erpnext.check_app_permission",
|
"has_permission": "erpnext.check_app_permission",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user