SecurityVC: 3 actions for secure backup: setup, synchronise, delete

This commit is contained in:
manuroe
2020-06-30 16:23:29 +02:00
parent fc55dfb55c
commit 52f3605914
3 changed files with 21 additions and 7 deletions

View File

@@ -680,7 +680,6 @@ SecureBackupSetupCoordinatorBridgePresenterDelegate>
- (void)refreshSecureBackupSectionData
{
// TODO
MXRecoveryService *recoveryService = self.mainSession.crypto.recoveryService;
if (recoveryService.hasRecovery)
{
@@ -1149,7 +1148,7 @@ SecureBackupSetupCoordinatorBridgePresenterDelegate>
#endif
case SECURE_BACKUP_SETUP:
{
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:@"Set up" // TODO
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:NSLocalizedStringFromTable(@"security_settings_secure_backup_setup", @"Vector", nil)
action:@selector(setupSecureBackup)
forTableView:tableView
atIndexPath:indexPath];
@@ -1159,17 +1158,17 @@ SecureBackupSetupCoordinatorBridgePresenterDelegate>
}
case SECURE_BACKUP_RESTORE:
{
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:@"Synchronise" // TODO
action:@selector(restoreFromSecureBackup)
forTableView:tableView
atIndexPath:indexPath];
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:NSLocalizedStringFromTable(@"security_settings_secure_backup_synchronise", @"Vector", nil)
action:@selector(restoreFromSecureBackup)
forTableView:tableView
atIndexPath:indexPath];
cell = buttonCell;
break;
}
case SECURE_BACKUP_DELETE:
{
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:@"Delete" // TODO
MXKTableViewCellWithButton *buttonCell = [self buttonCellWithTitle:NSLocalizedStringFromTable(@"security_settings_secure_backup_delete", @"Vector", nil)
action:@selector(deleteSecureBackup)
forTableView:tableView
atIndexPath:indexPath];