feat: Add desk_theme to bootinfo
This commit is contained in:
parent
0f8e164e8e
commit
bfce0ca52f
1 changed files with 2 additions and 0 deletions
|
|
@ -159,6 +159,8 @@ def get():
|
|||
bootinfo["setup_complete"] = cint(frappe.db.get_single_value('System Settings', 'setup_complete'))
|
||||
bootinfo["is_first_startup"] = cint(frappe.db.get_single_value('System Settings', 'is_first_startup'))
|
||||
|
||||
bootinfo['desk_theme'] = frappe.db.get_value("User", frappe.session.user, "desk_theme") or 'Light'
|
||||
|
||||
return bootinfo
|
||||
|
||||
def get_csrf_token():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue