chore: rename app to desk
This commit is contained in:
parent
ad03236e01
commit
7883897119
4 changed files with 6 additions and 4 deletions
|
|
@ -203,7 +203,7 @@ def load_desktop_data(bootinfo):
|
|||
frappe.get_hooks("app_home", app_name=app_name)
|
||||
and frappe.get_hooks("app_home", app_name=app_name)[0]
|
||||
)
|
||||
or (workspaces and "/app/" + frappe.utils.slug(workspaces[0]))
|
||||
or (workspaces and "/desk/" + frappe.utils.slug(workspaces[0]))
|
||||
or "",
|
||||
app_logo_url=app_info.get("logo")
|
||||
or frappe.get_hooks("app_logo_url", app_name=app_name)
|
||||
|
|
|
|||
|
|
@ -1234,7 +1234,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
return this.settings.get_form_link(doc);
|
||||
}
|
||||
|
||||
return `/app/${encodeURIComponent(
|
||||
return `/desk/${encodeURIComponent(
|
||||
frappe.router.slug(frappe.router.doctype_layout || this.doctype)
|
||||
)}/${encodeURIComponent(cstr(doc.name))}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -907,7 +907,9 @@ Object.assign(frappe.utils, {
|
|||
) {
|
||||
display_text = display_text || name;
|
||||
name = encodeURIComponent(name);
|
||||
let route = `/app/${encodeURIComponent(doctype.toLowerCase().replace(/ /g, "-"))}/${name}`;
|
||||
let route = `/desk/${encodeURIComponent(
|
||||
doctype.toLowerCase().replace(/ /g, "-")
|
||||
)}/${name}`;
|
||||
if (query_params_obj) {
|
||||
route += frappe.utils.make_query_string(query_params_obj);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ frappe.listview_settings["Workflow Action"] = {
|
|||
}
|
||||
docname = docname.match(/[%'"]/) ? encodeURIComponent(docname) : docname;
|
||||
|
||||
return "/app/" + frappe.router.slug(doctype) + "/" + docname;
|
||||
return "/desk/" + frappe.router.slug(doctype) + "/" + docname;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue