update calendar fixes, WIP create trajet
This commit is contained in:
parent
8f0eee2446
commit
b56b6e1d50
@ -37,6 +37,7 @@ import MapMarker from 'vue-material-design-icons/MapMarker.vue'
|
||||
import Tag from 'vue-material-design-icons/Tag.vue'
|
||||
import TextBoxOutline from 'vue-material-design-icons/TextBoxOutline.vue'
|
||||
import Bell from 'vue-material-design-icons/Bell.vue'
|
||||
import Human from 'vue-material-design-icons/Human.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -48,6 +49,7 @@ export default {
|
||||
Tag,
|
||||
TextBoxOutline,
|
||||
Bell,
|
||||
Human
|
||||
},
|
||||
props: {
|
||||
/**
|
||||
|
||||
@ -134,7 +134,6 @@ const setCustomKeyValueToIcsAndReturnIcs = (ics, key,value) => {
|
||||
}
|
||||
|
||||
const setCustomKeyValuesArrayToIcsAndReturnIcs = (ics, keyValueArray) => {
|
||||
debugger
|
||||
for (var key in keyValueArray) {
|
||||
const value = keyValueArray[key] ? keyValueArray[key] : '';
|
||||
ics = setCustomKeyValueToIcsAndReturnIcs(ics, key, value);
|
||||
|
||||
@ -106,8 +106,8 @@ const mapEventComponentToEventObject = (eventComponent) => {
|
||||
isAllDay: eventComponent.isAllDay(),
|
||||
canModifyAllDay: eventComponent.canModifyAllDay(),
|
||||
location: eventComponent.location,
|
||||
client : eventComponent.client,
|
||||
embalmer : eventComponent.embalmer,
|
||||
client : "CLIENT",
|
||||
embalmer : "TEST",
|
||||
description: eventComponent.description,
|
||||
accessClass: eventComponent.accessClass,
|
||||
status: eventComponent.status,
|
||||
@ -193,7 +193,15 @@ const mapEventComponentToEventObject = (eventComponent) => {
|
||||
}
|
||||
}
|
||||
|
||||
return eventObject
|
||||
if(eventComponent.hasProperty('CLIENT')){
|
||||
eventObject.client = eventComponent.getFirstPropertyFirstValue('CLIENT');
|
||||
}
|
||||
|
||||
if(eventComponent.hasProperty('EMBALMER')){
|
||||
eventObject.embalmer = eventComponent.getFirstPropertyFirstValue('EMBALMER');
|
||||
}
|
||||
|
||||
return eventObject;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -127,7 +127,7 @@ const getRFCProperties = () => {
|
||||
|
||||
clients: {
|
||||
readableName: t('calendar', 'Clients'),
|
||||
icon: 'Tag',
|
||||
icon: 'Human',
|
||||
searchable: true,
|
||||
multiple: false,
|
||||
info: t('calendar', 'Client from Gestion'),
|
||||
@ -139,12 +139,12 @@ const getRFCProperties = () => {
|
||||
client: {
|
||||
readableName: t('calendar', 'client'),
|
||||
placeholder: t('calendar', 'Add a client'),
|
||||
icon: 'User',
|
||||
icon: 'Human',
|
||||
},
|
||||
|
||||
embalmers: {
|
||||
readableName: t('calendar', 'Embalmers'),
|
||||
icon: 'User',
|
||||
icon: 'Human',
|
||||
searchable: true,
|
||||
multiple: false,
|
||||
info: t('calendar', 'Thanatopracteur from Gestion'),
|
||||
@ -156,7 +156,7 @@ const getRFCProperties = () => {
|
||||
embalmer: {
|
||||
readableName: t('calendar', 'Embalmer'),
|
||||
placeholder: t('calendar', 'Add a thanatopracteur'),
|
||||
icon: 'MapMarker',
|
||||
icon: 'Human',
|
||||
},
|
||||
|
||||
articles: {
|
||||
|
||||
@ -1684,7 +1684,6 @@ const actions = {
|
||||
async saveCalendarObjectInstance({ state, dispatch, commit }, { thisAndAllFuture, calendarId }) {
|
||||
const eventComponent = state.calendarObjectInstance.eventComponent
|
||||
const calendarObject = state.calendarObject
|
||||
debugger
|
||||
|
||||
updateAlarms(eventComponent)
|
||||
updateTalkParticipants(eventComponent)
|
||||
|
||||
@ -224,7 +224,6 @@ const actions = {
|
||||
* @return {Promise<void>}
|
||||
*/
|
||||
async updateCalendarObject(context, { calendarObject }) {
|
||||
debugger
|
||||
let eventComponent = calendarObject.calendarComponent.getFirstComponent('VEVENT');
|
||||
if (calendarObject.existsOnServer) {
|
||||
calendarObject.dav.data = calendarObject.calendarComponent.toICS()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user