Merge pull request #1191 from ae-utbm/notifications

Add macro to refresh messages from htmx swap
This commit is contained in:
2025-10-18 14:39:30 +02:00
committed by GitHub
5 changed files with 33 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
import { alpinePlugin } from "#core:utils/notifications";
import { alpinePlugin as notificationPlugin } from "#core:utils/notifications";
import sort from "@alpinejs/sort";
import Alpine from "alpinejs";
Alpine.plugin(sort);
Alpine.magic("notifications", alpinePlugin);
Alpine.magic("notifications", notificationPlugin);
window.Alpine = Alpine;
window.addEventListener("DOMContentLoaded", () => {