From 2d3fa8040cfa7bd39cb12f8540cfbac31461adf9 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 12 Aug 2023 11:33:35 +0530 Subject: [PATCH] fix(UX): make demo button dismissable for session --- erpnext/public/js/utils/demo.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js index 6cacd5de88..b59c4762e0 100644 --- a/erpnext/public/js/utils/demo.js +++ b/erpnext/public/js/utils/demo.js @@ -52,6 +52,12 @@ function setup_clear_demo_button() { > Clear Demo Data + + + + + + `); @@ -78,4 +84,8 @@ function setup_clear_demo_button() { } ); }); + + $("#dismiss-demo-banner").on("click", function () { + $floatingBar.remove(); + }); }