feat: enhance export and import workflows with improved error handling and notifications
This commit is contained in:
11
static/js/alerts.js
Normal file
11
static/js/alerts.js
Normal file
@@ -0,0 +1,11 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelectorAll("[data-toast-close]").forEach((button) => {
|
||||
button.addEventListener("click", () => {
|
||||
const toast = button.closest(".toast");
|
||||
if (toast) {
|
||||
toast.classList.add("hidden");
|
||||
setTimeout(() => toast.remove(), 200);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user