Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #240 from familytree365/calendar-upgrade
Browse files Browse the repository at this point in the history
fix start issue
  • Loading branch information
curtisdelicata authored Jul 16, 2021
2 parents 67a5dd0 + f92771d commit 704f41c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pages/calendar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<div class="card has-background-white has-text-black">
<div class="card-header">
<div class="card-header-title has-text-black">
Scheduler
Calendar
</div>
</div>
<div class="card-content is-flex jc--sb">
<vue-cal style="height: 600px" selected-date="2021-07-17"
<vue-cal style="height: 600px" :selected-date="selectedDate"
:time-from="9 * 60"
:time-to="23 * 60"
events-on-month-view="short"
Expand Down Expand Up @@ -158,8 +158,8 @@ export default {
components: { VueCal },
data() {
const cur_month = new Date().getMonth();
const cur_year = new Date().getFullYear();
var today = new Date();
return {
isShowModal: false,
selectedEvent: {
Expand All @@ -172,10 +172,11 @@ export default {
end: null,
class: null
},
modelConfig: {
type: 'string',
mask: 'YYYY-MM-DD HH:mm', // Uses 'iso' if missing
},
selectedDate : new Date(today.getFullYear(), today.getMonth(), today.getDate()),
modelConfig: {
type: 'string',
mask: 'YYYY-MM-DD HH:mm', // Uses 'iso' if missing
},
showEventCreationDialog: false,
eventsCssClasses: ['leisure', 'sport', 'health'],
events: [
Expand Down

0 comments on commit 704f41c

Please sign in to comment.