Add new transaction button on small screens
This commit is contained in:
parent
08bda8d14f
commit
9638676b8f
@ -7,6 +7,7 @@ import { useAccountStore } from "../stores/budget-account";
|
|||||||
import EditAccount from "../dialogs/EditAccount.vue";
|
import EditAccount from "../dialogs/EditAccount.vue";
|
||||||
import Button from "../components/Button.vue";
|
import Button from "../components/Button.vue";
|
||||||
import { useTransactionsStore } from "../stores/transactions";
|
import { useTransactionsStore } from "../stores/transactions";
|
||||||
|
import Modal from "../components/Modal.vue";
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
budgetid: string
|
budgetid: string
|
||||||
@ -103,6 +104,14 @@ function createReconcilationTransaction() {
|
|||||||
:index="index"
|
:index="index"
|
||||||
/>
|
/>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="md:hidden">
|
||||||
|
<Modal>
|
||||||
|
<template v-slot:placeholder>
|
||||||
|
<Button class="fixed right-4 bottom-4 font-bold text-lg bg-blue-500 py-2">+</Button>
|
||||||
|
</template>
|
||||||
|
<TransactionInputRow class="grid grid-cols-2" :budgetid="budgetid" :accountid="accountid" />
|
||||||
|
</Modal>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user