Skip to content

Commit f73e809

Browse files
committed
feat: update pagination condition to include previous page URL and enhance attachment layout in transaction details
1 parent f025135 commit f73e809

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

resources/js/components/shared/Pagination.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { data: pagination } = defineProps<{ data: PaginationData<T[]> }>();
66
</script>
77
<template>
88
<nav
9-
v-if="pagination.links.length > 0 && pagination.next_page_url"
9+
v-if="pagination.links.length > 0 && (pagination.next_page_url || pagination.prev_page_url)"
1010
class="flex-column flex flex-wrap items-center justify-between py-5 pt-6 md:flex-row"
1111
aria-label="Table navigation"
1212
>

resources/js/components/transactions/TransactionDetailsDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const paymentMethodIcon = computed(() => {
108108
<div v-if="transaction.attachment">
109109
<h4 class="text-muted-foreground mb-2 text-sm font-medium">Attachment</h4>
110110
<div class="rounded-lg border p-3">
111-
<div class="flex items-center justify-between">
111+
<div class="flex flex-wrap items-center justify-between gap-4">
112112
<div class="flex items-center">
113113
<component
114114
:is="isImage(transaction.attachment) ? 'Image' : isPdf(transaction.attachment) ? FileText : FileText"

resources/js/pages/Bills/Index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ function markAsPaid(id: string | number) {
181181
<div>
182182
<span
183183
:class="{
184-
'text-destructive': new Date(bill.due_date as string) < new Date() && bill.status === 'unpaid',
184+
'text-yellow-500': bill.status === 'unpaid',
185+
'text-destructive': bill.status === 'overdue',
185186
}"
186187
>
187188
{{ formatDate(bill.due_date as string) }}

0 commit comments

Comments
 (0)