Different copy on done screen if we setup from scratch

pull/21833/head
David Baker 2020-01-23 10:18:08 +00:00
parent 30b0663eb0
commit c0b7132404
2 changed files with 7 additions and 1 deletions

View File

@ -75,6 +75,9 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
canUploadKeysWithPasswordOnly: null,
accountPassword: '',
accountPasswordCorrect: null,
// set if we are 'upgrading' encryption (making an SSSS store from
// an existing key backup secret).
doingUpgrade: null,
};
this._fetchBackupInfo();
@ -99,6 +102,8 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
phase,
backupInfo,
backupSigStatus,
// remember this after this phase so we can use appropriate copy
doingUpgrade: phase === PHASE_MIGRATE,
});
}
@ -668,7 +673,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
case PHASE_STORING:
return _t('Storing secrets...');
case PHASE_DONE:
return _t('Encryption upgraded');
return this.state.doingUpgrade ? _t('Encryption upgraded') : _t('Encryption setup complete');
default:
return '';
}

View File

@ -2008,6 +2008,7 @@
"Keep it safe": "Keep it safe",
"Storing secrets...": "Storing secrets...",
"Encryption upgraded": "Encryption upgraded",
"Encryption setup complete": "Encryption setup complete",
"Unable to set up secret storage": "Unable to set up secret storage",
"Retry": "Retry",
"We'll store an encrypted copy of your keys on our server. Protect your backup with a passphrase to keep it secure.": "We'll store an encrypted copy of your keys on our server. Protect your backup with a passphrase to keep it secure.",