feat: Add desk_theme to bootinfo

This commit is contained in:
David Angulo 2021-03-25 19:39:15 -06:00
parent 0f8e164e8e
commit bfce0ca52f

View file

@ -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():