0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated copy when adding a single tag to posts

refs https://github.com/TryGhost/Team/issues/2677
This commit is contained in:
Simon Backx 2023-04-14 10:41:49 +02:00
parent a36e89dfcc
commit 352d7ee5e2

View file

@ -34,6 +34,10 @@ const messages = {
tagsAdded: {
single: 'Tags added successfully',
multiple: 'Tags added successfully to {count} posts'
},
tagAdded: {
single: 'Tag added successfully',
multiple: 'Tag added successfully to {count} posts'
}
};
@ -116,7 +120,11 @@ export default class PostsContextMenu extends Component {
};
})
});
if (tags.length > 1) {
this.notifications.showNotification(this.#getToastMessage('tagsAdded'), {type: 'success'});
} else {
this.notifications.showNotification(this.#getToastMessage('tagAdded'), {type: 'success'});
}
const serializedTags = tags.toArray().map((t) => {
return {