♻️ move add expense button above list
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba8b9c9409
commit
27a38c82a0
1 file changed
+9
-9
@@ -64,6 +64,15 @@ async function removeExpense(id: number) {
|
||||
|
||||
<template>
|
||||
<section v-if="data" class="space-y-3">
|
||||
<button
|
||||
v-if="!showExpenseForm"
|
||||
type="button"
|
||||
class="w-full rounded-xl bg-orange-500 px-4 py-2 font-medium text-white shadow-sm transition-colors hover:bg-orange-600"
|
||||
@click="newExpense"
|
||||
>
|
||||
{{ t('expenses.addExpense') }}
|
||||
</button>
|
||||
|
||||
<ExpenseList
|
||||
v-if="!showExpenseForm"
|
||||
:expenses="data.expenses"
|
||||
@@ -83,14 +92,5 @@ async function removeExpense(id: number) {
|
||||
@submit="submitExpense"
|
||||
@cancel="cancelExpenseForm"
|
||||
/>
|
||||
|
||||
<button
|
||||
v-if="!showExpenseForm"
|
||||
type="button"
|
||||
class="w-full rounded-xl bg-orange-500 px-4 py-2 font-medium text-white shadow-sm transition-colors hover:bg-orange-600"
|
||||
@click="newExpense"
|
||||
>
|
||||
{{ t('expenses.addExpense') }}
|
||||
</button>
|
||||
</section>
|
||||
</template>
|
||||
Reference in new issue
Block a user