fix: added manage billing button in navbar settings dropdown

This commit is contained in:
Shariq Ansari 2024-11-15 14:32:05 +05:30
parent a78bcc4566
commit 167929ffd7
2 changed files with 8 additions and 1 deletions

View file

@ -139,7 +139,7 @@ def load_conf_settings(bootinfo):
from frappe.core.api.file import get_max_file_size
bootinfo.max_file_size = get_max_file_size()
for key in ("developer_mode", "socketio_port", "file_watcher_port"):
for key in ("developer_mode", "socketio_port", "file_watcher_port", "fc_communication_secret"):
if key in frappe.conf:
bootinfo[key] = frappe.conf.get(key)

View file

@ -482,6 +482,13 @@ standard_navbar_items = [
"action": "frappe.quick_edit('Workspace Settings')",
"is_standard": 1,
},
{
"item_label": "Manage Billing",
"item_type": "Route",
"route": "/billing",
"is_standard": 1,
"condition": "frappe.boot.fc_communication_secret && frappe.boot.setup_complete && !frappe.is_mobile() && frappe.user.has_role('System Manager')",
},
{
"item_label": "Session Defaults",
"item_type": "Action",