fix: delete account failed modal strings

pull/3206/head
Audric Ackermann 1 year ago
parent bf344329f8
commit 2a1d969fa5
No known key found for this signature in database

@ -44,7 +44,6 @@ const DescriptionBeforeAskingConfirmation = (props: {
); );
}; };
// NODE: strings - check merge conflict
const DescriptionWhenAskingConfirmation = (props: { deleteMode: DeleteModes }) => { const DescriptionWhenAskingConfirmation = (props: { deleteMode: DeleteModes }) => {
return ( return (
<span className="session-confirm-main-message"> <span className="session-confirm-main-message">

@ -333,10 +333,10 @@ export async function deleteEverythingAndNetworkData() {
window?.inboxStore?.dispatch(updateDeleteAccountModal(null)); window?.inboxStore?.dispatch(updateDeleteAccountModal(null));
window?.inboxStore?.dispatch( window?.inboxStore?.dispatch(
updateConfirmModal({ updateConfirmModal({
title: window.i18n('clearDeviceAndNetworkConfirm'), title: window.i18n('clearDataAll'),
i18nMessage: { token: 'clearDataErrorDescriptionGeneric' }, i18nMessage: { token: 'clearDataErrorDescriptionGeneric' },
okTheme: SessionButtonColor.Danger, okTheme: SessionButtonColor.Danger,
okText: window.i18n('clearDeviceOnly'), okText: window.i18n('clearDevice'),
onClickOk: async () => { onClickOk: async () => {
await deleteDbLocally(); await deleteDbLocally();
window.restart(); window.restart();
@ -360,7 +360,7 @@ export async function deleteEverythingAndNetworkData() {
// open a new confirm dialog to ask user what to do // open a new confirm dialog to ask user what to do
window?.inboxStore?.dispatch( window?.inboxStore?.dispatch(
updateConfirmModal({ updateConfirmModal({
title: window.i18n('clearDeviceAndNetworkConfirm'), title: window.i18n('clearDataAll'),
i18nMessage: { i18nMessage: {
token: 'clearDataErrorDescription', token: 'clearDataErrorDescription',
args: { args: {
@ -370,7 +370,7 @@ export async function deleteEverythingAndNetworkData() {
}, },
i18nMessageSub: { token: 'clearDeviceAndNetworkConfirm' }, i18nMessageSub: { token: 'clearDeviceAndNetworkConfirm' },
okTheme: SessionButtonColor.Danger, okTheme: SessionButtonColor.Danger,
okText: window.i18n('clearDeviceOnly'), okText: window.i18n('clearDevice'),
onClickOk: async () => { onClickOk: async () => {
await deleteDbLocally(); await deleteDbLocally();
window.restart(); window.restart();

Loading…
Cancel
Save