Refemi / refemi_front

MIT License
2 stars 0 forks source link

suggestion title autocompletion add #165

Closed mridha-emran closed 2 years ago

mridha-emran commented 2 years ago

matching title autocomplete add in FormReference component

Lauraillouz commented 2 years ago

@mridha-emran that's awesome! It's juste missing one little thing: the point of it is to warn the contributor that the reference already exists. So if he notices it exists, it souldn't allow him to validate the reference. So maybe if you could make an error message appear at the beginning of the autocopleted suggestions like "Références similaires déjà existantes :", it would be perfect. Also if this message appear, then the contributor shouldn't be allowed to send the reference.

mridha-emran commented 2 years ago

ok! i add a verification query in the backend to check that the reference name already exists and i set an error in front to restrict the user from not being allowed to send the reference with the same title