inventaire / inventaire-client

webapp coupled to the inventaire server :books:
https://inventaire.io
47 stars 16 forks source link

editor: add label removal possibilities #492

Closed jum-s closed 2 months ago

jum-s commented 2 months ago

While this feature is implemented by doing some duck typing a bit (aka depending on whether value is defined as updateOrRemoveLabel, it will update or remove label accordingly), but the cases are a bit complex if you want to add the delete button (it would simplify a lot not to have it, but it does follow claim editor mechanism).

jum-s commented 2 months ago

As undo feature adds some complexity, I added e4a2bfa2c to fix some difficult states one may end up in ie. add a new label, then delete another one, then select an other language should return a wrong labels list, such as: 2024-05-06_10-37