Clean up settings UI

This commit is contained in:
Niels Andriesse 2019-08-21 10:41:55 +10:00
parent 6c14ce9c97
commit b48a3626fb
1 changed files with 3 additions and 17 deletions

View File

@ -238,23 +238,9 @@
// ========
#endif
[section
addItem:[self destructiveButtonItemWithTitle:NSLocalizedString(@"Share Public Key", @"")
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"share_public_key")
selector:@selector(sharePublicKey)
color:[UIColor ows_materialBlueColor]]];
[section
addItem:[self destructiveButtonItemWithTitle:NSLocalizedString(@"Show Seed", @"")
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"show_seed")
selector:@selector(showSeed)
color:[UIColor ows_materialBlueColor]]];
[section
addItem:[self destructiveButtonItemWithTitle:NSLocalizedString(@"Clear All Data", @"")
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"clear_all_data")
selector:@selector(clearAllData)
color:[UIColor ows_destructiveRedColor]]];
[section addItem:[OWSTableItem itemWithTitle:NSLocalizedString(@"Share Public Key", @"") actionBlock:^{ [weakSelf sharePublicKey]; }]];
[section addItem:[OWSTableItem itemWithTitle:NSLocalizedString(@"Show Seed", @"") actionBlock:^{ [weakSelf showSeed]; }]];
[section addItem:[OWSTableItem itemWithTitle:NSLocalizedString(@"Clear All Data", @"") actionBlock:^{ [weakSelf clearAllData]; }]];
if (TSAccountManager.sharedInstance.isDeregistered) {
[section addItem:[self destructiveButtonItemWithTitle:NSLocalizedString(@"SETTINGS_REREGISTER_BUTTON",