diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 955d7dc4ef4..92062c7942d 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -221,11 +221,12 @@ website_route_rules = [ standard_navbar_items = [ { - "item_label": "Clear Demo Data", + "item_label": "Delete Demo Data", "item_type": "Action", "action": "erpnext.demo.clear_demo();", "is_standard": 1, - "condition": "eval: frappe.boot.sysdefaults.demo_company", + "condition": "eval: frappe.boot.sysdefaults.demo_company && frappe.boot.sysdefaults.demo_company.length > 0", + "icon": "trash", }, ] diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js index db15834ae95..980ac530baf 100644 --- a/erpnext/public/js/utils/demo.js +++ b/erpnext/public/js/utils/demo.js @@ -2,7 +2,7 @@ frappe.provide("erpnext.demo"); $(document).on("desktop_screen", function (event, data) { data.desktop.add_menu_item({ - label: __("Clear Demo Data"), + label: __("Delete Demo Data"), icon: "trash", condition: function () { return frappe.boot.sysdefaults.demo_company;