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 #10804 Prevent creation of duplicate tags #10850

Merged
merged 3 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ function TagsManager({
setNewTag(null);
}
}))
.catch(() => isMounted(() => {
setErrorId('resourcesCatalog.errorUpdatingTag');
.catch((error) => isMounted(() => {
setErrorId(error.status === 409
? 'resourcesCatalog.errorTagNameAlreadyExist'
: 'resourcesCatalog.errorUpdatingTag'
);
}))
.finally(() => isMounted(() => {
setLoading(false);
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.da-DK.json
Original file line number Diff line number Diff line change
Expand Up @@ -3961,6 +3961,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -4380,6 +4380,7 @@
"manageTags": "Tags verwalten",
"errorLoadingTags": "Es ist nicht möglich, Tags zu laden",
"errorUpdatingTag": "Es ist nicht möglich, das Tag zu aktualisieren",
"errorTagNameAlreadyExist": "Ein Tag mit dem gleichen Namen existiert bereits",
"errorDeletingTag": "Es ist nicht möglich, das Tag zu löschen",
"removeFromFavorites": "Aus Favoriten entfernen",
"addToFavorites": "Zu Favoriten hinzufügen",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -4353,6 +4353,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -4342,6 +4342,7 @@
"manageTags": "Administrar etiquetas",
"errorLoadingTags": "No es posible cargar etiquetas",
"errorUpdatingTag": "No es posible actualizar la etiqueta",
"errorTagNameAlreadyExist": "Ya existe una etiqueta con el mismo nombre",
"errorDeletingTag": "No es posible eliminar la etiqueta",
"removeFromFavorites": "Eliminar de favoritos",
"addToFavorites": "Añadir a favoritos",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.fi-FI.json
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -4342,6 +4342,7 @@
"manageTags": "Gérer les tags",
"errorLoadingTags": "Il n'est pas possible de charger des balises",
"errorUpdatingTag": "Il n'est pas possible de mettre à jour la balise",
"errorTagNameAlreadyExist": "Une balise portant le même nom existe déjà",
"errorDeletingTag": "Il n'est pas possible de supprimer la balise",
"removeFromFavorites": "Supprimer des favoris",
"addToFavorites": "Ajouter aux favoris",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.hr-HR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.is-IS.json
Original file line number Diff line number Diff line change
Expand Up @@ -3994,6 +3994,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -4340,6 +4340,7 @@
"manageTags": "Gestisci tag",
"errorLoadingTags": "Impossibile caricare i tag",
"errorUpdatingTag": "Impossibile aggiornare il tag",
"errorTagNameAlreadyExist": "Esiste già un tag con lo stesso nome",
"errorDeletingTag": "Impossibile eliminare il tag",
"removeFromFavorites": "Rimuovi dai preferiti",
"addToFavorites": "Aggiungi ai preferiti",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -4328,6 +4328,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.sk-SK.json
Original file line number Diff line number Diff line change
Expand Up @@ -3500,6 +3500,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.sv-SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -3539,6 +3539,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.vi-VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.zh-ZH.json
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,7 @@
"manageTags": "Manage tags",
"errorLoadingTags": "It is not possible to load tags",
"errorUpdatingTag": "It is not possible to update the tag",
"errorTagNameAlreadyExist": "A tag with the same name already exists",
"errorDeletingTag": "It is not possible to delete the tag",
"removeFromFavorites": "Remove from favorites",
"addToFavorites": "Add to favorites",
Expand Down