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

Fix spatial coverage not saved #577

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Conversation

at-github
Copy link
Contributor

@at-github at-github requested a review from abulte November 6, 2024 16:31
Copy link

netlify bot commented Nov 6, 2024

Deploy Preview for ecospheres ready!

Name Link
🔨 Latest commit 63bcb0f
🔍 Latest deploy log https://app.netlify.com/sites/ecospheres/deploys/672c7cfc53170a0008d99fa5
😎 Deploy Preview https://deploy-preview-577--ecospheres.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 6, 2024

Deploy Preview for meteo-france ready!

Name Link
🔨 Latest commit 63bcb0f
🔍 Latest deploy log https://app.netlify.com/sites/meteo-france/deploys/672c7cfc8748c60008f65d78
😎 Deploy Preview https://deploy-preview-577--meteo-france.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@at-github at-github requested a review from narduin November 6, 2024 16:40
Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

Je ferais plutôt @update:spatial-coverage-model="onUpdateSpatialCoverage" dans BouquetForm sur <SelectSpatialCoverage> (cf BouquetSearch).

@narduin
Copy link
Contributor

narduin commented Nov 6, 2024

La couverture n'est pas pré-remplie quand on clique sur "éditer".

J'ai résolu le problème autrement mais ce que tu as fait me semble propre à part ça.
Je te mets ça ici pour pas polluer la PR. J'ai corrigé le nom du v-model et j'ai déplacé l'appel à la fonction d'update dans la validation du formulaire.

// bouquetForm.vue

// ligne 84
  const onValidSubmit = async (validatedValues: {
   [...]
   topic.value.extras[topicsExtrasKey].subtheme = validatedValues.subtheme
+ onUpdateSpatialCoverage(spatialCoverage.value)
  // sync valid status with parent
  emits('updateValidation', true)
}

// ligne 247 
- <SelectSpatialCoverage v-model="spatialCoverage" @update:model-value="onUpdateSpatialCoverage"/>
+ <SelectSpatialCoverage v-model:spatial-coverage-model="spatialCoverage" />

@at-github at-github requested a review from abulte November 6, 2024 17:16
@at-github at-github requested review from abulte and narduin November 7, 2024 08:40
Copy link

@DanFluture275 DanFluture275 left a comment

Choose a reason for hiding this comment

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

testé PO ok

@at-github at-github merged commit 02338ff into main Nov 7, 2024
7 checks passed
@at-github at-github deleted the fix/spatial-coverage-not-saved branch November 7, 2024 10:11
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.

Couverture spatiale non sauvegardée
4 participants