mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Soham Kulkarni <77533095+sokumon@users.noreply.github.com>
This commit is contained in:
@@ -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 = $(
|
||||
`<a class="dropdown-item" onclick="return erpnext.demo.clear_demo()">
|
||||
|
||||
Reference in New Issue
Block a user