diff --git a/apps/web/src/lib/ui/data/FeedCard.svelte b/apps/web/src/lib/ui/data/FeedCard.svelte
index 50eedc7..f246e05 100644
--- a/apps/web/src/lib/ui/data/FeedCard.svelte
+++ b/apps/web/src/lib/ui/data/FeedCard.svelte
@@ -15,7 +15,7 @@
async function handleCopy() {
if (!url) return;
const ok = await copyToClipboard(url);
- if (ok) toasts.success('Enlace copiado al portapapeles');
+ if (ok) toasts.success('Enlace de calendario copiado');
else toasts.error('No se pudo copiar el enlace');
}
@@ -36,8 +36,8 @@
{/if}
-
-
diff --git a/apps/web/src/routes/+layout.svelte b/apps/web/src/routes/+layout.svelte
index 75c8968..1619f25 100644
--- a/apps/web/src/routes/+layout.svelte
+++ b/apps/web/src/routes/+layout.svelte
@@ -2,6 +2,7 @@
import '$lib/styles/tokens.css';
import '$lib/styles/base.css';
import favicon from '$lib/assets/favicon.svg';
+ import Toast from '$lib/ui/feedback/Toast.svelte';
@@ -11,4 +12,5 @@
+
diff --git a/apps/web/src/routes/app/integrations/+page.svelte b/apps/web/src/routes/app/integrations/+page.svelte
index 489edd3..996f12a 100644
--- a/apps/web/src/routes/app/integrations/+page.svelte
+++ b/apps/web/src/routes/app/integrations/+page.svelte
@@ -21,6 +21,7 @@
if (type === 'group' && groupId) rotating[groupId] = true;
if (type === 'personal') rotating['personal'] = true;
if (type === 'aggregate') rotating['aggregate'] = true;
+ rotating = { ...rotating };
const res = await fetch('/api/integrations/feeds/rotate', {
method: 'POST',
@@ -28,8 +29,7 @@
body: JSON.stringify({ type, groupId: groupId ?? null })
});
if (!res.ok) {
- const msg = await res.text();
- error(`No se pudo rotar: ${msg || res.status}`);
+ error('No se puedo actualizar');
return;
}
const body = await res.json();
@@ -41,13 +41,14 @@
const idx = groups.findIndex(g => g.groupId === groupId);
if (idx >= 0) groups[idx].url = body.url || null;
}
- success('Token rotado correctamente');
+ success('Feed de calendario actualizado');
} catch (e) {
- error('Error al rotar el token');
+ error('No se puedo actualizar');
} finally {
if (type === 'group' && groupId) rotating[groupId] = false;
if (type === 'personal') rotating['personal'] = false;
if (type === 'aggregate') rotating['aggregate'] = false;
+ rotating = { ...rotating };
}
}