This commit is contained in:
parent
f3bed6d21c
commit
c2d1858e68
@ -1,6 +1,7 @@
|
||||
|
||||
import * as api from "./api";
|
||||
import journey_wrapper from "./types/wrapper";
|
||||
import { migrator } from "./types/migration";
|
||||
|
||||
Vue.component("l-map", window.Vue2Leaflet.LMap);
|
||||
Vue.component("l-tile-layer", window.Vue2Leaflet.LTileLayer);
|
||||
@ -8,6 +9,7 @@ Vue.component("l-marker", window.Vue2Leaflet.LMarker);
|
||||
Vue.component("l-icon", window.Vue2Leaflet.LIcon);
|
||||
Vue.component("l-popup", window.Vue2Leaflet.LPopup);
|
||||
Vue.component("l-tooltip", window.Vue2Leaflet.LTooltip);
|
||||
Vue.component("l-polyline", window.Vue2Leaflet.LPolyline);
|
||||
Vue.component("l-control-scale", window.Vue2Leaflet.LControlScale);
|
||||
Vue.component("multiselect", window.VueMultiselect.default);
|
||||
Vue.use(window.VueTextareaAutosize);
|
||||
@ -29,6 +31,10 @@ const app = new Vue({
|
||||
},
|
||||
monthBeforeYear: true,
|
||||
},
|
||||
polyline: {
|
||||
latlngs: [[47.334852, -1.509485], [47.342596, -1.328731], [47.241487, -1.190568], [47.234787, -1.358337]],
|
||||
color: 'green'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
start_journey: () => window.location.href = "/" + this.journey.id,
|
||||
@ -121,7 +127,7 @@ const app = new Vue({
|
||||
}
|
||||
});
|
||||
|
||||
api.load(this.journey.id).then((r) => (app.journey.data = r));
|
||||
api.load(this.journey.id).then((r) => (app.journey.data = migrator(r)));
|
||||
|
||||
this.debounceSave = api.throttle(this.save_data, 500);
|
||||
this.debounceSearch = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user