[calendar] remove toady mark from the banner

This commit is contained in:
Avris 2021-08-18 18:51:11 +02:00
parent 2e2f8fee53
commit 2118f21802
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="calendar">
<div v-for="i in (startingDayOfWeek - 1)"></div>
<div v-for="d in iterateMonth(year, month)"
:class="['rounded-circle', getDayClass(d), d.equals(today) ? 'day-today' : '', d.equals(selectedDay) ? 'day-selected' : '']"
:class="['rounded-circle', getDayClass(d), markToday && d.equals(today) ? 'day-today' : '', d.equals(selectedDay) ? 'day-selected' : '']"
@click.stop="selectDay(d)"
:data-flag="getDayFlag(d)"
:style="getDayFlag(d) ? `background-image: url('${getDayFlag(d)}')` : ''"
@ -36,6 +36,7 @@
props: {
year: { required: true },
month: { required: true },
markToday: { type: Boolean },
},
data() {
return {

View File

@ -12,7 +12,7 @@
<section class="row">
<div v-for="i in 12" class="col-12 col-sm-6 col-lg-4 py-3">
<h3 class="text-center"><T>calendar.months.{{i}}</T></h3>
<Calendar :year="year" :month="i"/>
<Calendar :year="year" :month="i" markToday/>
</div>
</section>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 253 KiB