From 041bed7e9d69eb1e46e0a70e4461c730049fe77b Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 5 May 2021 12:56:27 +0530 Subject: [PATCH] Added sketches to the nav-bar on install --- community/install.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/community/install.py b/community/install.py index 6593b3ea..f46a8a39 100644 --- a/community/install.py +++ b/community/install.py @@ -6,6 +6,7 @@ import frappe def after_install(): set_app_name() disable_signup() + add_header_items() add_footer_items() def set_app_name(): @@ -16,6 +17,16 @@ def set_app_name(): def disable_signup(): frappe.db.set_value("Website Settings", None, "disable_signup", 1) +def add_header_items(): + items = [ + {"label": "Sketches", "url": "/sketches"}, + ] + doc = frappe.get_doc("Website Settings", None) + doc.update({ + "top_bar_items": items + }) + doc.save() + def add_footer_items(): items = [ {"label": "About", "url": "/about"},