fix(UX): make demo button dismissable for session
diff --git a/erpnext/public/js/utils/demo.js b/erpnext/public/js/utils/demo.js
index 6cacd5d..b59c476 100644
--- a/erpnext/public/js/utils/demo.js
+++ b/erpnext/public/js/utils/demo.js
@@ -52,6 +52,12 @@
>
Clear Demo Data
</button>
+
+ <a type="button" id="dismiss-demo-banner" class="text-muted" style="align-self: center">
+ <svg class="icon" style="">
+ <use class="" href="#icon-close"></use>
+ </svg>
+ </a>
</div>
</div>
`);
@@ -78,4 +84,8 @@
}
);
});
+
+ $("#dismiss-demo-banner").on("click", function () {
+ $floatingBar.remove();
+ });
}