Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support collectivites d'outremer #218

Merged
merged 8 commits into from
May 21, 2021
Merged

Conversation

fcamblor
Copy link
Collaborator

Fix for #182

  • Prise en compte du nouveau département om mis à dispo par le back (cf Pas d'infos centres sur les collectivités d'outremer vitemadose#384)
  • Décoration des 4 communes des collectivités d'outremer pour :
    • Faire en sorte de positionner un codeDepartement='om'
    • Rajouter une latng (car aucune n'est fournie par l'API Geoportail) en utilisant les mêmes coordonnées que celles définies coté Android (cf ici)

@fcamblor fcamblor changed the title Support collectivites outremer Support collectivites d'outremer May 17, 2021
Copy link
Collaborator

@Luwangel Luwangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I hope there is no conflict with #211

@@ -35,7 +35,15 @@ export class VmdHomeView extends LitElement {
} else {
const commune = event.detail.commune
const departements = await State.current.departementsDisponibles()
const departement = departements.find(({ code_departement }) => code_departement === commune.codeDepartement)
if(!departements.find(d => d.code_departement==='om')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not better to add this behavior in the State.current.departementsDisponibles() method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui, je suis d'accord

Après, ce qui serait encore mieux, c'est qu'on ait pas du tout à le faire :-D (eg, que le back le rajoute :) )

src/views/vmd-home.view.ts Outdated Show resolved Hide resolved
@Luwangel
Copy link
Collaborator

@fcamblor J'ai appliqué les petits changements que j'avais suggéré. Tout est bon pour moi. Si tu n'y vois pas d'inconvénient, on peut la valider :)

@fcamblor fcamblor merged commit 2890481 into dev May 21, 2021
@fcamblor
Copy link
Collaborator Author

Parfait merci @Luwangel :)

@Luwangel Luwangel deleted the support-collectivites-outremer branch May 21, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants