Skip to content

Commit 8385920

Browse files
authored
Merge pull request oxen-io#2533 from Bilb/settings-UI-fixes
fix: copy of in various dialogs
2 parents bffc9ed + b304995 commit 8385920

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

_locales/en/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
"enterPassword": "Please enter your password",
277277
"confirmPassword": "Confirm password",
278278
"enterNewPassword": "Please enter your new password",
279-
"confirmNewPassword": "Confirm password",
279+
"confirmNewPassword": "Confirm new password",
280280
"showRecoveryPhrasePasswordRequest": "Please enter your password",
281281
"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.",
282282
"invalidOpenGroupUrl": "Invalid URL",

ts/components/dialog/SessionPasswordDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export class SessionPasswordDialog extends React.Component<Props, State> {
6868

6969
const confirmButtonColor =
7070
passwordAction === 'remove' ? SessionButtonColor.Danger : SessionButtonColor.Green;
71+
const confirmButtonText =
72+
passwordAction === 'remove' ? window.i18n('remove') : window.i18n('done');
7173
// do this separately so typescript's compiler likes it
7274
const localizedKeyAction: LocalizerKeys =
7375
passwordAction === 'change'
@@ -117,7 +119,7 @@ export class SessionPasswordDialog extends React.Component<Props, State> {
117119
<div className="session-modal__button-group">
118120
<SessionButton text={window.i18n('cancel')} onClick={this.closeDialog} />
119121
<SessionButton
120-
text={window.i18n('done')}
122+
text={confirmButtonText}
121123
buttonColor={confirmButtonColor}
122124
onClick={this.setPassword}
123125
/>

ts/components/settings/section/CategoryPermissions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const toggleCallMediaPermissions = async (triggerUIUpdate: () => void) => {
1616
title: window.i18n('callMediaPermissionsDialogTitle'),
1717
message: window.i18n('callMediaPermissionsDialogContent'),
1818
okTheme: SessionButtonColor.Danger,
19+
okText: window.i18n('continue'),
1920
onClickOk: async () => {
2021
await window.toggleCallMediaPermissionsTo(true);
2122
triggerUIUpdate();

0 commit comments

Comments
 (0)