Skip to content

Commit

Permalink
dont show back to today button if today is weekend
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Oct 13, 2024
1 parent e3f63dd commit a6171e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/stundenplan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
</p>
<span class="mb-4 flex text-center items-center space-x-4">
<UPagination v-model="page" :total="data.length" />
<UButton
<UButton
v-if="Object.keys(groupedByDay).indexOf(today.toString()) !== -1"
:class="{ 'opacity-0': page == Object.keys(groupedByDay).indexOf(today.toString())+1 }"
class="py-2"
@click="page = Object.keys(groupedByDay).indexOf(today.toString())+1">
Expand Down

0 comments on commit a6171e4

Please sign in to comment.