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

Commit 81db829

Browse files
committed
forgot to include the "today shortcut" in the directive also
1 parent c87a759 commit 81db829

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ng2-datetime-picker.directive.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class Ng2DatetimePickerDirective implements OnInit, OnChanges {
4646
@Input('max-hour') maxHour: Date | number;
4747
@Input('disabled-dates') disabledDates: Date[];
4848
@Input('show-close-layer') showCloseLayer: boolean;
49+
@Input('show-today-shortcut') showTodayShortcut: boolean = false;
4950
@Input() formControlName: string;
5051

5152
@Input('ngModel') ngModel: any;
@@ -262,6 +263,7 @@ export class Ng2DatetimePickerDirective implements OnInit, OnChanges {
262263
component.disabledDates = this.disabledDates;
263264
component.showCloseButton = this.closeOnSelect === false;
264265
component.showCloseLayer = this.showCloseLayer;
266+
component.showTodayShortcut = this.showTodayShortcut;
265267

266268
this.styleDatetimePicker();
267269

0 commit comments

Comments
 (0)