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