diff --git a/src/lib/components/DialogResetPassword.svelte b/src/lib/components/DialogResetPassword.svelte index 0740709..b160a1a 100644 --- a/src/lib/components/DialogResetPassword.svelte +++ b/src/lib/components/DialogResetPassword.svelte @@ -44,7 +44,7 @@ } cargando = true; try { - await cambiarContraseñaUsuario(data.id, passwordData.oldPassword, passwordData.newPassword); + await cambiarContraseñaUsuario(passwordData.oldPassword, passwordData.newPassword, data.id); cargando = false; open = false; passwordData.oldPassword = ''; @@ -103,7 +103,7 @@ /> - - {:else if $posts.length === 0} + {:else if $posts?.length == 0} {/if}
- - {#if cargando && $posts.length === 0} - - {:else if mensajeError} - - {:else if $posts.length === 0} - - {:else} -
- {#each $posts as post (post.id)} -
- -
- {/each} -
- {/if} - -
- - {#if cargando && $posts.length > 0} -
+ {#if cargando && !finished} -
- {/if} + {:else if mensajeError !== ''} + + {:else} +
+ {#each $posts as post (post.id)} +
+ +
+ {/each} + +
+ + {#if cargando && !finished} + + {/if} +
+ {/if} - {#if postAModificar}
{/if} - (showCrearPost = false)}> - - Crear publicación - - - +
+ (showCrearPost = false)}> + { + if (e.ctrlKey && e.key === 'Enter') { + showCrearPost = false; + } + }} + > + Crear Publicacion + + + +
-{#if $sesionStore?.isAdmin || $sesionStore?.username === params.perfil} +{#if $sesionStore?.isAdmin || $sesionStore?.username == params.perfil}
- + - +
{/if} @@ -191,5 +207,6 @@ + \ No newline at end of file