Skip to content

Commit

Permalink
refs #70 disable bill duplication if payer is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Aug 5, 2021
1 parent d549dfd commit 7ffff1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BillForm.vue
Expand Up @@ -38,8 +38,9 @@
<button
v-else
id="duplicate-bill"
v-tooltip.bottom="{ content: t('cospend', 'Duplicate bill') }"
v-tooltip.bottom="{ content: payerDisabled ? t('cospend', 'Impossible to duplicate a bill with a disabled payer') : t('cospend', 'Duplicate bill') }"
style="display: inline-block;"
:disabled="payerDisabled"
@click="onDuplicate">
<span class="icon-play-add" />
</button>
Expand Down

0 comments on commit 7ffff1e

Please sign in to comment.