- Create single page of an Event (to share on FB for example).

This commit is contained in:
Paolo Arena
2019-11-07 23:11:05 +01:00
parent 5393092542
commit 8ba6c8361b
11 changed files with 176 additions and 41 deletions

View File

@@ -48,6 +48,7 @@ export default class CEventsCalendar extends MixinEvents {
public $t: any
public calendarView = 'month'
public selectedDate = '2019-04-01'
public tabeditor: string = 'details'
public formDefault: IEvents = {
title: '',
details: '',
@@ -497,6 +498,13 @@ export default class CEventsCalendar extends MixinEvents {
return (this.isAlreadyBooked(event) ? 'text-left bg-light-green-1' : 'text-left')
}
public checkFieldUndef() {
if (this.eventForm.bodytext === undefined)
this.eventForm.bodytext = ''
if (this.eventForm.details === undefined)
this.eventForm.details = ''
}
public editEvent(eventparam) {
console.log('editEvent - INIZIO')
this.resetForm()
@@ -505,6 +513,8 @@ export default class CEventsCalendar extends MixinEvents {
this.eventForm = { ...eventparam }
this.checkFieldUndef()
this.eventForm.dateTimeStart = tools.getstrYYMMDDDateTime(eventparam.dateTimeStart)
this.eventForm.dateTimeEnd = tools.getstrYYMMDDDateTime(eventparam.dateTimeEnd)