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:
parent
a36e89dfcc
commit
352d7ee5e2
1 changed files with 9 additions and 1 deletions
|
@ -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 {
|
|||
};
|
||||
})
|
||||
});
|
||||
this.notifications.showNotification(this.#getToastMessage('tagsAdded'), {type: 'success'});
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue