mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-04 13:40:43 -03:00
no se actualizaba la ui cuando se modifica el usuario
This commit is contained in:
@@ -104,10 +104,10 @@
|
||||
</div>
|
||||
|
||||
<h1 class="mt-10 scroll-m-20 text-center text-2xl font-extrabold tracking-tight lg:text-5xl">
|
||||
{usu.displayName}
|
||||
{data.displayName}
|
||||
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
||||
</h1>
|
||||
{#if usu.bio}
|
||||
{#if data.bio}
|
||||
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
||||
{@html contenido()}
|
||||
<!-- {usu.bio.replaceAll('<', '')} -->
|
||||
@@ -129,10 +129,10 @@
|
||||
</Avatar>
|
||||
</div>
|
||||
<h1 class="mt-10 scroll-m-20 text-center text-2xl font-extrabold tracking-tight lg:text-5xl">
|
||||
{usu.displayName}
|
||||
{data.displayName}
|
||||
<p class="ml-2 text-2xl font-medium text-muted-foreground">@{data.username}</p>
|
||||
</h1>
|
||||
{#if usu.bio}
|
||||
{#if data.bio}
|
||||
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
||||
{@html usu.bio.replaceAll('\n', '<br>')}
|
||||
</p>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
import { updateUsuario } from '@/hooks/updateUsuario';
|
||||
import DialogFooter from './ui/dialog/dialog-footer.svelte';
|
||||
import Spinner from './ui/spinner/spinner.svelte';
|
||||
import { invalidate } from '$app/navigation';
|
||||
import { invalidate, invalidateAll } from '$app/navigation';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { data = $bindable(), children } = $props();
|
||||
@@ -42,9 +42,9 @@
|
||||
});
|
||||
cargando = false;
|
||||
open = false;
|
||||
// invalidateAll();
|
||||
await invalidate(page.url);
|
||||
await invalidate('perfil:general');
|
||||
await invalidateAll();
|
||||
// await invalidate(page.url);
|
||||
// await invalidate('perfil:general');
|
||||
}
|
||||
|
||||
function onkeydown(e: KeyboardEvent) {
|
||||
|
||||
Reference in New Issue
Block a user