diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js index 97279dbef96..db15834ae95 100644 --- a/erpnext/public/js/utils/demo.js +++ b/erpnext/public/js/utils/demo.js @@ -1,11 +1,5 @@ frappe.provide("erpnext.demo"); -$(document).on("toolbar_setup", function () { - if (frappe.boot.sysdefaults.demo_company) { - render_clear_demo_action(); - } -}); - $(document).on("desktop_screen", function (event, data) { data.desktop.add_menu_item({ label: __("Clear Demo Data"), @@ -19,16 +13,6 @@ $(document).on("desktop_screen", function (event, data) { }); }); -function render_clear_demo_action() { - let demo_action = $( - ` - ${__("Clear Demo Data")} - ` - ); - - demo_action.appendTo($("#toolbar-user")); -} - erpnext.demo.clear_demo = function () { frappe.confirm(__("Are you sure you want to clear all demo data?"), () => { frappe.call({