From 4b6018fe86c4cdea7165ce9403596f15a37e908f Mon Sep 17 00:00:00 2001 From: Marcel Diegelmann Date: Mon, 16 Feb 2026 09:01:31 +0100 Subject: [PATCH] statistics_assembly_controller bzgl. Alert-Ausgabe aktualisieren --- .../pages/statistics_assembly_controller.js | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) 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 = ` -