-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bloquer la sélection de détections déjà sélectionnées
Dans l'interface d'édition de la zone bloquer dans l'interface les détections qui auraient déjà été sélectionnées dans un autre picker. Ainsi un utilisateur ne peut plus avoir l'erreur back disant qu'une détection donnée a été sélectionnée à la fois dans une ZI et en hors zone infestée, ou alors dans deux ZI différentes. J'ai essayé plusieurs approches, les contraintes a prendre en compte étant: - Que la recherche fonctionne toujours - Gérer l'ajout et la supression de détection dans un picker - Le nombre de picker est variable dans le temps (il est possible d'ajouter ou de supprimer des ZI) Une autre approche était d'ajouter l'attribut disabled directement au niveau de l'élément HTML, mais cela me forçait a demander a choiceJS le rafraichissement des dropdowns. En utilisant setChoices, cette partie est directement gérée par la bibliothéque.
- Loading branch information
Showing
4 changed files
with
147 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters