diff --git a/assets/controllers/pages/statistics_assembly_controller.js b/assets/controllers/pages/statistics_assembly_controller.js index 248fe29d..df53e304 100644 --- a/assets/controllers/pages/statistics_assembly_controller.js +++ b/assets/controllers/pages/statistics_assembly_controller.js @@ -126,30 +126,32 @@ export default class extends Controller { } showToast(type, message) { - // Create a simple alert that doesn't disrupt layout - const alertId = 'alert-' + Date.now(); const iconClass = type === 'success' ? 'fa-check-circle' : 'fa-exclamation-triangle'; - const alertClass = type === 'success' ? 'alert-success' : 'alert-danger'; + const bgClass = type === 'success' ? 'bg-success' : 'bg-danger'; + const title = type === 'success' ? 'Success' : 'Error'; + const timeString = new Date().toLocaleString(undefined, { + year: '2-digit', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: '2-digit' + }); - const alertHTML = ` -