move event.locations to more unique event.online_locations, various fixes on insertion workflow, improved locale messages

This commit is contained in:
sedum
2023-02-22 03:11:58 +01:00
parent 3ca86b9a3b
commit cff608c06f
11 changed files with 105 additions and 102 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
client-only(placeholder='Loading...' )
LMap(ref="map"
LMap(ref="mapEdit"
id="leaflet-map"
:zoom="zoom"
:options="{attributionControl: false}"
@@ -34,7 +34,7 @@ export default {
mdiWalk, mdiBike, mdiCar, mdiMapMarker,
url: $store.state.settings.tilelayer_provider || 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
attribution: $store.state.settings.tilelayer_provider_attribution || "<a target=\"_blank\" href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors",
zoom: 14,
zoom: 16,
center: [this.place.latitude, this.place.longitude],
marker: {
address: this.place.address,
@@ -54,8 +54,8 @@ export default {
});
setTimeout(() => {
if (this.$refs.map && this.$refs.map.mapObject ) {
this.$refs.map.mapObject.invalidateSize();
if (this.$refs.mapEdit && this.$refs.mapEdit.mapObject ) {
this.$refs.mapEdit.mapObject.invalidateSize();
}
}, 200);
}