Skip to content

Commit

Permalink
fix non idéale des events de scots en attendant la passation sur ce s…
Browse files Browse the repository at this point in the history
…ujet.
  • Loading branch information
UngererFabien authored and rik committed Dec 17, 2024
1 parent 39f41e4 commit bd081ba
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions components/Frise/EventSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@
import FormInput from '@/mixins/FormInput.js'
import PluEvents from '@/assets/data/events/PLU_events.json'
// import ScotEvents from '@/assets/data/events/SCOT_events.json'
// import ScotEvents from '@/assets/data/events/ScotEvents.json'
import ccEvents from '@/assets/data/events/CC_events.json'
// Solution peu idéale. Mais il faudrait que Julien revoit la génération de liste d'events à partir du fichier d'Hermance.
const ScotEvents = PluEvents.map((e) => {
if (e.name === "Délibération d'approbation du conseil municipal ou communautaire") {
return Object.assign({}, e, {
name: "Délibération d'approbation"
})
} else { return e }
})
export default {
mixins: [FormInput],
model: {
Expand Down Expand Up @@ -56,8 +65,8 @@ export default {
PLU: PluEvents,
PLUi: PluEvents,
POS: PluEvents,
// TODO: On utilise la meme liste d'event que les PLU en attendant d'être a jour sur les SCOT
SCOT: PluEvents,
// TODO: Mettre a jour la liste des events SCOTs avec le tableau d'Hermance. Voir comment plus haut..
SCOT: ScotEvents,
CC: ccEvents
}
console.log('internalDocType:', this.internalDocType)
Expand Down

0 comments on commit bd081ba

Please sign in to comment.