diff --git a/nuxt4-app/app/app.vue b/nuxt4-app/app/app.vue index 73ce1ad..c7d8edb 100644 --- a/nuxt4-app/app/app.vue +++ b/nuxt4-app/app/app.vue @@ -13,6 +13,9 @@ // Inicializar sistema de temas const { loadTheme, initStorageListener, cleanupStorageListener } = useTheme() +// Inicializar sistema de notificaciones +const { initialize: initNotifications, cleanupOldNotifications } = useNotifications() + // Signal that the app is ready onMounted(() => { // Cargar tema guardado (o aplicar el por defecto) @@ -21,6 +24,12 @@ onMounted(() => { // Inicializar sincronización de tema entre pestañas initStorageListener() + // Inicializar sistema de notificaciones + initNotifications() + + // Limpiar notificaciones antiguas (> 30 días) + cleanupOldNotifications() + // Add class to HTML element to hide loading screen if (process.client) { // Small delay to ensure everything is painted diff --git a/nuxt4-app/app/components/app/AppSidebar.vue b/nuxt4-app/app/components/app/AppSidebar.vue index 96f0c41..ad6235b 100644 --- a/nuxt4-app/app/components/app/AppSidebar.vue +++ b/nuxt4-app/app/components/app/AppSidebar.vue @@ -156,12 +156,12 @@ Notificaciones -