Parcourir la source

fix: Add toggle theme as standard dropdown option

- For new sites toggle theme was not available. It was added via patch for old sites.
version-14
Suraj Shetty il y a 3 ans
Parent
révision
645f23a9a7
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. +6
    -0
      frappe/utils/install.py

+ 6
- 0
frappe/utils/install.py Voir le fichier

@@ -219,6 +219,12 @@ def add_standard_navbar_items():
'action': 'frappe.ui.toolbar.toggle_full_width()', 'action': 'frappe.ui.toolbar.toggle_full_width()',
'is_standard': 1 'is_standard': 1
}, },
{
'item_label': 'Toggle Theme',
'item_type': 'Action',
'action': 'new frappe.ui.ThemeSwitcher().show()',
'is_standard': 1
},
{ {
'item_label': 'Background Jobs', 'item_label': 'Background Jobs',
'item_type': 'Route', 'item_type': 'Route',


Chargement…
Annuler
Enregistrer