kopia lustrzana https://github.com/FacilMap/facilmap
24 wiersze
669 B
TypeScript
24 wiersze
669 B
TypeScript
import WithRender from "./route-form-tab.vue";
|
|
import Vue from "vue";
|
|
import { Component } from "vue-property-decorator";
|
|
import { InjectMapComponents, InjectMapContext } from "../../utils/decorators";
|
|
import RouteForm from "./route-form";
|
|
import "./route-form-tab.scss";
|
|
import { MapComponents, MapContext } from "../leaflet-map/leaflet-map";
|
|
|
|
@WithRender
|
|
@Component({
|
|
components: { RouteForm }
|
|
})
|
|
export default class RouteFormTab extends Vue {
|
|
|
|
@InjectMapContext() mapContext!: MapContext;
|
|
@InjectMapComponents() mapComponents!: MapComponents;
|
|
|
|
tabActive = false;
|
|
|
|
activate(): void {
|
|
this.mapContext.$emit("fm-search-box-show-tab", "fm-route-form-tab");
|
|
}
|
|
|
|
} |