diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js index ef83cf61d44..97279dbef96 100644 --- a/erpnext/public/js/utils/demo.js +++ b/erpnext/public/js/utils/demo.js @@ -6,6 +6,19 @@ $(document).on("toolbar_setup", function () { } }); +$(document).on("desktop_screen", function (event, data) { + data.desktop.add_menu_item({ + label: __("Clear Demo Data"), + icon: "trash", + condition: function () { + return frappe.boot.sysdefaults.demo_company; + }, + onClick: function () { + return erpnext.demo.clear_demo(); + }, + }); +}); + function render_clear_demo_action() { let demo_action = $( `