Block Toast untranslated strings

This commit is contained in:
infiinte-persistence 2020-09-04 11:41:37 +08:00 committed by Sean Yesmunt
parent 694c6b528c
commit d1db6fb3b3
2 changed files with 6 additions and 1 deletions

View file

@ -451,6 +451,7 @@
"Blocked": "Blocked", "Blocked": "Blocked",
"Unblock": "Unblock", "Unblock": "Unblock",
"You have blocked this channel content.": "You have blocked this channel content.", "You have blocked this channel content.": "You have blocked this channel content.",
"Blocked %channelUrl%": "Blocked %channelUrl%",
"This channel hasn't published anything yet": "This channel hasn't published anything yet", "This channel hasn't published anything yet": "This channel hasn't published anything yet",
"Network and Data Settings": "Network and Data Settings", "Network and Data Settings": "Network and Data Settings",
"Save all viewed content to your downloads directory": "Save all viewed content to your downloads directory", "Save all viewed content to your downloads directory": "Save all viewed content to your downloads directory",

View file

@ -35,7 +35,11 @@ export default function BlockButton(props: Props) {
onClick={e => { onClick={e => {
e.stopPropagation(); e.stopPropagation();
if (!channelIsBlocked) { if (!channelIsBlocked) {
doToast({ message: `Blocked ${shortUrl}`, linkText: 'Manage', linkTarget: `/${PAGES.BLOCKED}` }); doToast({
message: __('Blocked %channelUrl%', { channelUrl: shortUrl }),
linkText: __('Manage'),
linkTarget: `/${PAGES.BLOCKED}`,
});
} }
toggleBlockChannel(permanentUrl); toggleBlockChannel(permanentUrl);