From b30499568fbaaec2478670eff4f92879bbd826e0 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 6 Oct 2022 15:32:30 +1100 Subject: [PATCH] fix: copy of in various dialogs --- _locales/en/messages.json | 2 +- ts/components/dialog/SessionPasswordDialog.tsx | 4 +++- ts/components/settings/section/CategoryPermissions.tsx | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 100ea14de..e4be9f400 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -276,7 +276,7 @@ "enterPassword": "Please enter your password", "confirmPassword": "Confirm password", "enterNewPassword": "Please enter your new password", - "confirmNewPassword": "Confirm password", + "confirmNewPassword": "Confirm new password", "showRecoveryPhrasePasswordRequest": "Please enter your password", "recoveryPhraseSavePromptMain": "Your recovery phrase is the master key to your Session ID — you can use it to restore your Session ID if you lose access to your device. Store your recovery phrase in a safe place, and don't give it to anyone.", "invalidOpenGroupUrl": "Invalid URL", diff --git a/ts/components/dialog/SessionPasswordDialog.tsx b/ts/components/dialog/SessionPasswordDialog.tsx index 49bc90400..3f1f90b4a 100644 --- a/ts/components/dialog/SessionPasswordDialog.tsx +++ b/ts/components/dialog/SessionPasswordDialog.tsx @@ -68,6 +68,8 @@ export class SessionPasswordDialog extends React.Component { const confirmButtonColor = passwordAction === 'remove' ? SessionButtonColor.Danger : SessionButtonColor.Green; + const confirmButtonText = + passwordAction === 'remove' ? window.i18n('remove') : window.i18n('done'); // do this separately so typescript's compiler likes it const localizedKeyAction: LocalizerKeys = passwordAction === 'change' @@ -117,7 +119,7 @@ export class SessionPasswordDialog extends React.Component {
diff --git a/ts/components/settings/section/CategoryPermissions.tsx b/ts/components/settings/section/CategoryPermissions.tsx index 41deb614f..b17b48bbc 100644 --- a/ts/components/settings/section/CategoryPermissions.tsx +++ b/ts/components/settings/section/CategoryPermissions.tsx @@ -16,6 +16,7 @@ const toggleCallMediaPermissions = async (triggerUIUpdate: () => void) => { title: window.i18n('callMediaPermissionsDialogTitle'), message: window.i18n('callMediaPermissionsDialogContent'), okTheme: SessionButtonColor.Danger, + okText: window.i18n('continue'), onClickOk: async () => { await window.toggleCallMediaPermissionsTo(true); triggerUIUpdate();