fix: labels in user desk settings
This commit is contained in:
parent
cf1a3760bb
commit
85dc6d15b0
2 changed files with 14 additions and 15 deletions
|
|
@ -53,8 +53,8 @@
|
||||||
"search_bar",
|
"search_bar",
|
||||||
"notifications",
|
"notifications",
|
||||||
"list_settings_section",
|
"list_settings_section",
|
||||||
"list_sidebar",
|
|
||||||
"bulk_actions",
|
"bulk_actions",
|
||||||
|
"list_sidebar",
|
||||||
"view_switcher",
|
"view_switcher",
|
||||||
"form_settings_section",
|
"form_settings_section",
|
||||||
"form_sidebar",
|
"form_sidebar",
|
||||||
|
|
@ -771,13 +771,13 @@
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "search_bar",
|
"fieldname": "search_bar",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Search Bar"
|
"label": "Show search bar"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "notifications",
|
"fieldname": "notifications",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Notifications"
|
"label": "Allow notifications"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"collapsible": 1,
|
"collapsible": 1,
|
||||||
|
|
@ -789,20 +789,20 @@
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "list_sidebar",
|
"fieldname": "list_sidebar",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Sidebar"
|
"label": "Show sidebar"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "bulk_actions",
|
"fieldname": "bulk_actions",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Bulk Actions",
|
"label": "Allow bulk actions",
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "view_switcher",
|
"fieldname": "view_switcher",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "View Switcher"
|
"label": "Show view switcher"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"collapsible": 1,
|
"collapsible": 1,
|
||||||
|
|
@ -814,25 +814,25 @@
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "form_sidebar",
|
"fieldname": "form_sidebar",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Sidebar"
|
"label": "Show sidebar"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "timeline",
|
"fieldname": "timeline",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Timeline"
|
"label": "Show timeline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"fieldname": "dashboard",
|
"fieldname": "dashboard",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Dashboard"
|
"label": "Show dashboard"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
"fieldname": "show_absolute_datetime_in_timeline",
|
"fieldname": "show_absolute_datetime_in_timeline",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Show Absolute Datetime in Timeline"
|
"label": "Show absolute datetime in timeline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "sessions_tab",
|
"fieldname": "sessions_tab",
|
||||||
|
|
@ -851,7 +851,7 @@
|
||||||
"default": "0",
|
"default": "0",
|
||||||
"fieldname": "form_navigation_buttons",
|
"fieldname": "form_navigation_buttons",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Navigation Buttons"
|
"label": "Show navigation buttons"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icon": "fa fa-user",
|
"icon": "fa fa-user",
|
||||||
|
|
@ -905,7 +905,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"make_attachments_public": 1,
|
"make_attachments_public": 1,
|
||||||
"modified": "2026-02-20 19:47:59.211390",
|
"modified": "2026-02-22 13:44:36.317890",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Core",
|
"module": "Core",
|
||||||
"name": "User",
|
"name": "User",
|
||||||
|
|
|
||||||
|
|
@ -141,12 +141,11 @@ def add(args: dict[str, Any] | None = None, *, ignore_permissions: bool | int =
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def add_multiple(args: dict[str, Any] | None = None):
|
def add_multiple() -> None:
|
||||||
if not frappe.get_cached_value("User", frappe.session.user, "bulk_actions"):
|
if not frappe.get_cached_value("User", frappe.session.user, "bulk_actions"):
|
||||||
frappe.throw(_("You are not allowed to perform bulk actions"), frappe.PermissionError)
|
frappe.throw(_("You are not allowed to perform bulk actions"), frappe.PermissionError)
|
||||||
|
|
||||||
if not args:
|
args = frappe.local.form_dict
|
||||||
args = frappe.local.form_dict
|
|
||||||
|
|
||||||
docname_list = json.loads(args["name"])
|
docname_list = json.loads(args["name"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue