Fixed calendar aspect ratio to my liking
This commit is contained in:
parent
e9967ebdc6
commit
bcce516c66
@ -1087,6 +1087,7 @@ class ScheduleCalendarTab extends Component {
|
|||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
},
|
},
|
||||||
firstDay: 1,
|
firstDay: 1,
|
||||||
|
aspectRatio: 2.5,
|
||||||
});
|
});
|
||||||
this.calendar.render();
|
this.calendar.render();
|
||||||
}
|
}
|
||||||
@ -1098,7 +1099,7 @@ class ScheduleCalendarTab extends Component {
|
|||||||
StartDate: info.startStr,
|
StartDate: info.startStr,
|
||||||
EndDate: info.endStr,
|
EndDate: info.endStr,
|
||||||
}
|
}
|
||||||
_app.current.request('/schedule/list', req)
|
_app.current.request('/schedule/lis', req)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const fullcalendarEvents = data.ScheduleEvents.map(sch => {
|
const fullcalendarEvents = data.ScheduleEvents.map(sch => {
|
||||||
return {
|
return {
|
||||||
@ -1109,6 +1110,7 @@ class ScheduleCalendarTab extends Component {
|
|||||||
})
|
})
|
||||||
successCallback(fullcalendarEvents)
|
successCallback(fullcalendarEvents)
|
||||||
})
|
})
|
||||||
|
.catch(err=>failureCallback(err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user