Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 02e2da2

Browse files
author
eksrvb
committed
fix arrow behavior
1 parent 5c8ef66 commit 02e2da2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/material-calendar/src/lib/calendar-panels/calendar-panels.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="divbox" *ngIf="!isLoading">
22
<button mat-flat-button class="slideButton"
3-
*ngIf="config.switches && mode == 'monthly' && monthsBefore != 0 && monthsAfter != 0"
3+
*ngIf="config.switches && mode == 'monthly' && (monthsBefore != 0 || monthsAfter != 0)"
44
(click)="onMonthBackward()">
55
<span class="material-icons">
66
keyboard_arrow_left
@@ -10,7 +10,7 @@
1010
<mat-grid-list cols="{{config.calendarWeek? 8 : 7}}" rowHeight="30px">
1111
<mat-grid-tile colspan="{{config.calendarWeek? 8 : 7}}" rowspan="1">
1212
<button mat-icon-button
13-
*ngIf="config.switches && mode == 'monthly' && monthsBefore == 0 && monthsAfter == 0"
13+
*ngIf="config.switches && mode == 'monthly' && (monthsBefore == 0 && monthsAfter == 0)"
1414
(click)="onMonthBackward()">
1515
<span class="material-icons">
1616
keyboard_arrow_left
@@ -23,7 +23,7 @@
2323
</div>
2424
<span style="flex: 1 1 auto;"></span>
2525
<button mat-icon-button
26-
*ngIf="config.switches && mode == 'monthly' && monthsBefore == 0 && monthsAfter == 0"
26+
*ngIf="config.switches && mode == 'monthly' && (monthsBefore == 0 && monthsAfter == 0)"
2727
(click)="onMonthForward()">
2828
<span class="material-icons">
2929
keyboard_arrow_right
@@ -58,7 +58,7 @@
5858
</mat-grid-list>
5959
</div>
6060
<button mat-flat-button class="slideButton"
61-
*ngIf="config.switches && mode == 'monthly' && monthsBefore != 0 && monthsAfter != 0"
61+
*ngIf="config.switches && mode == 'monthly' && (monthsBefore != 0 || monthsAfter != 0)"
6262
(click)="onMonthForward()">
6363
<span class="material-icons">
6464
keyboard_arrow_right

0 commit comments

Comments
 (0)