fix: tweak language around bookmarking (#1848)

For consistency with the rest of the UI, say "toot" instead of "status" and specify "toot."
This commit is contained in:
Nolan Lawson 2020-08-27 08:49:36 -07:00 committed by GitHub
parent 08c021bc56
commit 2f41494a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -12,14 +12,14 @@ export async function setStatusBookmarkedOrUnbookmarked (statusId, bookmarked) {
await unbookmarkStatus(currentInstance, accessToken, statusId)
}
if (bookmarked) {
toast.say('Bookmarked status')
toast.say('Bookmarked toot')
} else {
toast.say('Unbookmarked status')
toast.say('Unbookmarked toot')
}
store.setStatusBookmarked(currentInstance, statusId, bookmarked)
await database.setStatusBookmarked(currentInstance, statusId, bookmarked)
} catch (e) {
console.error(e)
toast.say(`Unable to ${bookmarked ? 'bookmark' : 'unbookmark'} status: ` + (e.message || ''))
toast.say(`Unable to ${bookmarked ? 'bookmark' : 'unbookmark'} toot: ` + (e.message || ''))
}
}

View File

@ -83,7 +83,7 @@ export default {
muteConversationLabel: ({ mutingConversation }) => mutingConversation ? 'Unmute conversation' : 'Mute conversation',
muteConversationIcon: ({ mutingConversation }) => mutingConversation ? '#fa-volume-up' : '#fa-volume-off',
isPublicOrUnlisted: ({ visibility }) => visibility === 'public' || visibility === 'unlisted',
bookmarkLabel: ({ status }) => status.bookmarked ? 'Unbookmark' : 'Bookmark',
bookmarkLabel: ({ status }) => status.bookmarked ? 'Unbookmark toot' : 'Bookmark toot',
items: ({
blockLabel, blocking, blockIcon, muteLabel, muteIcon, followLabel, followIcon,
following, followRequested, pinLabel, isUser, visibility, mentionsUser, mutingConversation,