associate location on ms calendar remote

This commit is contained in:
2022-07-01 12:12:48 +02:00
parent 014e281d13
commit 2a6974610f
18 changed files with 359 additions and 28 deletions

View File

@@ -157,15 +157,16 @@ export default {
endDateInput.value = null !== range ? datetimeToISO(range.end) : "";
let calendarRangeInput = document.getElementById("chill_activitybundle_activity_calendarRange");
calendarRangeInput.value = null !== range ? Number(range.extendedProps.calendarRangeId) : "";
let location = getters.getLocationById(range.extendedProps.locationId);
if (null === location) {
console.error("location not found!", range.extendedProps.locationId);
}
dispatch('updateLocation', location);
if (null !== range) {
let location = getters.getLocationById(range.extendedProps.locationId);
if (null === location) {
console.error("location not found!", range.extendedProps.locationId);
}
dispatch('updateLocation', location);
const userId = range.extendedProps.userId;
if (state.activity.mainUser !== null && state.activity.mainUser.id !== userId) {
dispatch('setMainUser', state.usersData.get(userId).user);

View File

@@ -1,7 +1,7 @@
<template>
<teleport to="body">
<Teleport to="body">
<modal v-if="showModal"
@close="showModal = false">
@close="closeModal">
<template v-slot:header>
<h3>{{ 'Modifier le lieu' }}</h3>
@@ -20,7 +20,7 @@
</template>
</modal>
</teleport>
</Teleport>
</template>
<script setup lang="ts">
@@ -59,6 +59,10 @@ const saveAndClose = function(e: Event): void {
.then(_ => {showModal.value = false;})
}
const closeModal = function(_: any): void {
showModal.value = false;
}
defineExpose({startEdit});
</script>