Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Nov 13, 2024
1 parent 2fa7bbb commit 4139190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions frontend/src/lib/components/IconButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
let loadingSize = size === 'btn-sm' ? 'loading-xs' as const : undefined;
export let outline = variant !== 'btn-ghost';
export let fake = false; // for display purposes only
export let title: string | undefined = undefined;
const xlIcons: IconString[] = ['i-mdi-refresh'];
$: textSize = xlIcons.includes(icon) ? 'text-xl' : 'text-lg';
Expand All @@ -22,7 +21,6 @@
<!-- type="button" ensures the button doen't act as a submit button when in a form -->
<button type="button" on:click
disabled={disabled && !loading}
{title}
class:pointer-events-none={fake || loading}
class="btn btn-square {variant ?? ''} {size ?? ''} {$$restProps.class ?? ''}"
class:btn-outline={outline}
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/lib/components/Users/UserModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
const { notifySuccess } = useNotifications();
// eslint-disable-next-line func-style
async function sendVerificationEmail(user: User): Promise<void> {
await _sendNewVerificationEmailByAdmin(user.id as UUID);
notifySuccess($t('admin_dashboard.notifications.verification_email_sent', { email: user.email ?? '' }));
Expand Down Expand Up @@ -64,12 +63,13 @@
<span class="i-mdi-help-circle-outline" />
</span>
<AdminContent>
<IconButton
size="btn-sm"
icon="i-mdi-email"
title={$t('admin_dashboard.resend_verification_email')}
on:click={() => sendVerificationEmail(user)}
/>
<div class="tooltip" data-tip={$t('admin_dashboard.resend_verification_email')}>
<IconButton
size="btn-sm"
icon="i-mdi-email"
on:click={() => sendVerificationEmail(user)}
/>
</div>
</AdminContent>
{/if}
{:else}
Expand Down

0 comments on commit 4139190

Please sign in to comment.