Skip to content

Commit

Permalink
Remove unnecessary click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Aug 7, 2024
1 parent 7a28306 commit 9e4ae20
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/src/routes/(app)/users/[id=uuid]/edit/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<script lang="ts">
import type { PageData } from './$types';
import { page } from '$app/stores';
import ModelForm from '$lib/components/Forms/ModelForm.svelte';
import { UserEditSchema } from '$lib/utils/schemas';
import { page } from '$app/stores';
import { breadcrumbObject } from '$lib/utils/stores';
import type { PageData } from './$types';
import * as m from '$paraglide/messages';
import { goto } from '$app/navigation';
export let data: PageData;
breadcrumbObject.set(data.object);
Expand All @@ -21,10 +20,7 @@
<a
href="{$page.url.pathname}/set-password"
class="text-primary-700 hover:text-primary-500"
data-testid="set-password-btn"
on:click={(_) => {
goto(`${$page.url.pathname}/set-password`);
}}>{m.setTemporaryPassword()}</a
data-testid="set-password-btn">{m.setTemporaryPassword()}</a
>. {m.setTemporaryPassword2()}.
</p>
</div>

0 comments on commit 9e4ae20

Please sign in to comment.