Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Added modal event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothindir committed Jun 28, 2019
1 parent be05100 commit 144b36a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/Planification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}"
class="z-10"
/>
<AddEventModal ref="addEventModal" v-show="showModal" v-on:close="showModal = false"></AddEventModal>
<AddEventModal ref="addEventModal" v-show="showModal" v-on:close="showModal = false" v-on:submit="addModalEvent"></AddEventModal>
</div>
</template>

Expand Down Expand Up @@ -185,7 +185,8 @@
/* Stores the current selection */
selectionChanged: function (selectionInfo) {
this.selectionInfo = selectionInfo;
}, dateChanged: function(dateInfo) {
},
dateChanged: function(dateInfo) {
this.selectionInfo = null;
this.showModalDialog({
start: dateInfo.date,
Expand Down Expand Up @@ -220,6 +221,9 @@
});
}
},
addModalEvent: function(event) {
//event.title;
},
clearModalDialog: function(){
this.showModal = false;
this.selectionInfo = null;
Expand Down

0 comments on commit 144b36a

Please sign in to comment.