Skip to content
Snippets Groups Projects
Commit 465ad167 authored by leandro's avatar leandro
Browse files

add button import in feature_type

parent 2410f141
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ const routes = [
{
path: '/projet/:slug/type-signalement/ajouter/',
name: 'ajouter-type-signalement',
props: true,
component: () => import('../views/feature_type/Feature_type_edit.vue')
},
{
......
......@@ -114,6 +114,11 @@
{{ action === "create" ? "Créer" : "Sauvegarder" }} le type de
signalement
</button>
<button v-if="geojson" class="ui teal icon button" type="button" @click="postFormAndGeojson">
<i class="white save icon"></i>
Créer et importer le(s) signalement(s) du geojson
</button>
// TODO: Add check script for form & other scripts //
</form>
</div>
......@@ -144,6 +149,7 @@ export default {
dataKey: 0,
};
},
props: ["geojson", ],
computed: {
...mapGetters(["project"]),
......@@ -226,7 +232,9 @@ export default {
this.form.title.errors.push("Veuillez compléter ce champ.");
}
},
postFormAndGeojson(){
console.log('TODO : DO FUNCTION')
},
updateStore() {
this.$store.commit("feature_type/UPDATE_FORM", {
color: this.form.color,
......
......@@ -529,8 +529,9 @@ export default {
// AFTER : AND CUSTOM FORM
},
toNewFeatureType(){
this.$router.push({
name: 'ajouter-type-signalement',
this.$router.push({
name: 'ajouter-type-signalement',
params: { geojson: this.jsonDict }
});
},
toFormatGeom(value){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment