adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

Update an already existing model

Ouverte
#155 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
215
Forks
98
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi @poteto & others,

I am trying to have more than one validated-form in the page, for the same model, taking a changeset.
Different fields will be applicable for each form. But certain fields in one form, is a computed property of another form (the computed property is given in the model itself, so when we save / get, field is computed and received).

Since they are different forms, and each form creates a new model, the model is not updating the other form. Is there any way in which this can be achieved?

Please find this [Twiddle](https://ember-twiddle.com/b9f8fea705f4afbd5e4622040e7efc17?openFiles=templates.application.hbs%2C) for a similar demo.

Many thanks in advance!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.