started to open concernement on map click

This commit is contained in:
2023-04-05 22:02:19 +02:00
parent 4a7f9282b5
commit d88914c679
11 changed files with 86 additions and 15 deletions

View File

@@ -2,6 +2,8 @@ import { defineStore } from 'pinia'
import { print } from 'graphql/language/printer'
import gql from 'graphql-tag'
// import REST from '@api/rest-axios'
import GQL from '@api/graphql-axios'
// import JSONAPI from '@api/json-axios'
@@ -47,6 +49,10 @@ export const ConcernementsStore = defineStore({
openCloseConcernement (id, state) {
// console.log('openCloseConcernement', id, state);
this.concernementsByID[id].opened = state;
if (state) {
this.opened = this.concernementsByID[id];
this.router.push({name: 'concernement', params: {id: id}});
}
}
}
})