Start the view to now
This commit is contained in:
parent
4bbe0cb856
commit
e967664769
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
let openModal = false;
|
||||
const toggle = () => (openModal = !openModal);
|
||||
const mobile = window.innerWidth < 765;
|
||||
const now = new Date();
|
||||
|
||||
let calendar;
|
||||
|
||||
|
@ -47,7 +48,8 @@
|
|||
height: '100%',
|
||||
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
|
||||
nowIndicator: true,
|
||||
now: new Date(),
|
||||
now: now,
|
||||
scrollTime: now.toLocaleTimeString(),
|
||||
eventClick: info => {
|
||||
openModal = true;
|
||||
event.set(info.event);
|
||||
|
|
Loading…
Reference in a new issue