simplify Copied xxx => Copied to clipboard

pull/1306/head
Audric Ackermann 5 years ago
parent e008dbd0d5
commit 9d4dff611f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1616,14 +1616,6 @@
"noContactsForGroup": {
"message": "You don't have any contacts to start a group with."
},
"copiedPublicKey": {
"message": "Session ID copied",
"description": "A toast message telling the user that the key was copied"
},
"copiedChatId": {
"message": "Copied chat ID",
"description": "A toast message telling the user that the key was copied"
},
"copyMessage": {
"message": "Copy message text",
"description": "Button action that the user can click to copy their public keys"
@ -1720,13 +1712,8 @@
"message": "Please enter an open group URL",
"description": "Error message when no server url entered"
},
"copiedMnemonic": {
"message": "Recovery phrase copied successfully",
"description": "A toast message telling the user that the mnemonic seed was copied"
},
"copiedSessionID": {
"message": "Copied Session ID to clipboard",
"description": "A toast message telling the user that their Session ID was copied"
"copiedToClipboard": {
"message": "Copied to clipboard"
},
"passwordViewTitle": {
"message": "Type In Your Password",

@ -2310,14 +2310,12 @@
copyPublicKey() {
clipboard.writeText(this.id);
const copiedMessage = this.isGroup()
? i18n('copiedChatId')
: i18n('copiedPublicKey');
const copiedMessage = i18n('copiedToClipboard');
window.pushToast({
title: copiedMessage,
type: 'success',
id: 'copiedPublicKey',
id: 'copiedToClipboard',
});
},

@ -935,9 +935,9 @@
}
window.pushToast({
title: i18n('copiedPublicKey'),
title: i18n('copiedToClipboard'),
type: 'success',
id: 'copiedPublicKey',
id: 'copiedToClipboard',
});
},

@ -14,7 +14,7 @@ import { Colors, LocalizerType } from '../types/Util';
import {
getBlockMenuItem,
getClearNicknameMenuItem,
getCopyIdMenuItem,
getCopyMenuItem,
getDeleteContactMenuItem,
getDeleteMessagesMenuItem,
getInviteContactMenuItem,
@ -210,7 +210,7 @@ export class ConversationListItem extends React.PureComponent<Props> {
onClearNickname,
i18n
)}
{getCopyIdMenuItem(
{getCopyMenuItem(
isPublic,
isRss,
type === 'group',

@ -305,9 +305,9 @@ export class EditProfileDialog extends React.Component<Props, State> {
window.clipboard.writeText(sessionID);
window.pushToast({
title: window.i18n('copiedSessionID'),
title: window.i18n('copiedToClipboard'),
type: 'success',
id: 'copiedSessionID',
id: 'copiedToClipboard',
});
}

@ -304,7 +304,7 @@ export class ConversationHeader extends React.Component<Props> {
return (
<ContextMenu id={triggerId}>
{this.renderPublicMenuItems()}
{Menu.getCopyIdMenuItem(
{Menu.getCopyMenuItem(
isPublic,
isRss,
isGroup,

@ -213,7 +213,7 @@ export class SessionSeedModal extends React.Component<Props, State> {
window.clipboard.writeText(seed);
window.pushToast({
title: window.i18n('copiedMnemonic'),
title: window.i18n('copiedToClipboard'),
type: 'success',
id: 'copySeedToast',
});

Loading…
Cancel
Save