mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
fix(schedule): default state
This commit is contained in:
parent
e0b2d1f93e
commit
dfb4490496
1 changed files with 6 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ import { T } from 'src/app/t.const';
|
|||
selector: 'owl-wrapper',
|
||||
templateUrl: './owl-wrapper.component.html',
|
||||
styleUrls: ['./owl-wrapper.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.Default
|
||||
})
|
||||
export class OwlWrapperComponent {
|
||||
@Input() now: Date = new Date();
|
||||
|
|
@ -23,7 +23,9 @@ export class OwlWrapperComponent {
|
|||
@Output()
|
||||
triggerSubmit: EventEmitter<number> = new EventEmitter();
|
||||
T: typeof T = T;
|
||||
date: Date = new Date();
|
||||
|
||||
date?: Date;
|
||||
|
||||
laterTodaySlots: string[] = [
|
||||
'9:00',
|
||||
'15:00',
|
||||
|
|
@ -44,9 +46,9 @@ export class OwlWrapperComponent {
|
|||
|
||||
@Input('dateTime')
|
||||
set dateTimeSet(v: number) {
|
||||
this.dateTime = v;
|
||||
// NOTE: owl doesn't with undefined...
|
||||
if (v) {
|
||||
this.dateTime = v;
|
||||
// NOTE: owl doesn't with undefined...
|
||||
this.date = new Date(v);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue