- When gelocation control is built, it awaits loading of libraries - Withi the control everything is await but a layer above where multiple controls are sequentially built this breaks - Form render goes ahead without waiting for the gelocation control - The `onload_post_render` in `Location` cannot find the map wrapper as the control is still being built - Therefore, on a hard load, the control does not show up and appears on soft reload.
13 lines
457 B
JavaScript
13 lines
457 B
JavaScript
import "./jquery-bootstrap";
|
|
import "./lib/moment";
|
|
import "../js/lib/leaflet/leaflet.js";
|
|
import "../js/lib/leaflet_easy_button/easy-button.js";
|
|
import "../js/lib/leaflet_draw/leaflet.draw.js";
|
|
import "../js/lib/leaflet_control_locate/L.Control.Locate.js";
|
|
import Sortable from "sortablejs";
|
|
|
|
window.SetVueGlobals = (app) => {
|
|
app.config.globalProperties.__ = window.__;
|
|
app.config.globalProperties.frappe = window.frappe;
|
|
};
|
|
window.Sortable = Sortable;
|