2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix(ux): show view month and year on changing days

This commit is contained in:
18alantom 2023-05-09 10:32:18 +05:30
parent f6ce646477
commit 5996b35a8f

View File

@ -2,7 +2,13 @@
<div>
<!-- Datetime header -->
<div class="flex justify-between items-center text-sm px-4 pt-4">
<div class="text-blue-500">
<div
v-if="viewMonth !== month || viewYear !== year"
class="text-gray-900"
>
{{ `${months[viewMonth]}, ${viewYear}` }}
</div>
<div v-else class="text-blue-500">
{{ datetimeString }}
</div>