- Create single page of an Event (to share on FB for example).
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user