Skip to content

Commit

Permalink
Change title if button is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwijos committed Jan 18, 2024
1 parent cada192 commit 50756b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/(protected)/admin/users/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
{/if}
<button
class="btn text-sm bg-white dark:bg-surface-600"
title="Öppna en dialogruta för att bekräfta fakturering"
title={numUsersToInvoice === 0
? 'Knappen är avstängd. Det finns inga användare att fakturera'
: 'Öppna en dialogruta för att bekräfta fakturering'}
disabled={numUsersToInvoice === 0}
on:click={showFileInvoiceModal}
>
Expand Down

0 comments on commit 50756b2

Please sign in to comment.