pull/1005/head
Vincent 5 years ago
parent d6a48b9f6d
commit c7c72e50bb

@ -2297,8 +2297,10 @@
"message": "Confirm password" "message": "Confirm password"
}, },
"pasteLongPasswordToastTitle": { "pasteLongPasswordToastTitle": {
"message": "The clipboard content exceeds the maximum password length of $max_pwd_len$ characters.", "message":
"description": "Shown when user pastes a password which is longer than MAX_PASSWORD_LEN" "The clipboard content exceeds the maximum password length of $max_pwd_len$ characters.",
"description":
"Shown when user pastes a password which is longer than MAX_PASSWORD_LEN"
}, },
"showSeedPasswordRequest": { "showSeedPasswordRequest": {
"message": "Please enter your password", "message": "Please enter your password",

@ -198,7 +198,12 @@ export class SessionPasswordModal extends React.Component<Props, State> {
const clipboard = event.clipboardData.getData('text'); const clipboard = event.clipboardData.getData('text');
if (clipboard.length > window.CONSTANTS.MAX_PASSWORD_LENGTH) { if (clipboard.length > window.CONSTANTS.MAX_PASSWORD_LENGTH) {
const title = String(window.i18n('pasteLongPasswordToastTitle', window.CONSTANTS.MAX_PASSWORD_LENGTH)); const title = String(
window.i18n(
'pasteLongPasswordToastTitle',
window.CONSTANTS.MAX_PASSWORD_LENGTH
)
);
window.pushToast({ window.pushToast({
title, title,

@ -128,7 +128,12 @@ export class SessionPasswordPrompt extends React.PureComponent<{}, State> {
if (clipboard.length > window.CONSTANTS.MAX_PASSWORD_LENGTH) { if (clipboard.length > window.CONSTANTS.MAX_PASSWORD_LENGTH) {
this.setState({ this.setState({
error: String(window.i18n('pasteLongPasswordToastTitle', window.CONSTANTS.MAX_PASSWORD_LENGTH)) error: String(
window.i18n(
'pasteLongPasswordToastTitle',
window.CONSTANTS.MAX_PASSWORD_LENGTH
)
),
}); });
} }

Loading…
Cancel
Save