refactor: use variables for app name, title, and home route in hooks

This commit is contained in:
Abdeali Chharchhoda
2025-01-02 16:40:12 +05:30
parent bdece96510
commit 71d1205f53

View File

@@ -12,10 +12,10 @@ app_home = "/app/home"
add_to_apps_screen = [
{
"name": "erpnext",
"name": app_name,
"logo": "/assets/erpnext/images/erpnext-logo-blue.png",
"title": "ERPNext",
"route": "/app/home",
"title": app_title,
"route": app_home,
"has_permission": "erpnext.check_app_permission",
}
]