From 383e02edc4a7a055ac826a7d909e1099ebf5b959 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 6 Mar 2018 18:27:15 -0800 Subject: [PATCH] New section in settings screen, full-screen 'are you sure?' --- _locales/en/messages.json | 28 +++++++++++ background.html | 43 +++++++++++++++++ images/delete.svg | 1 + js/views/settings_view.js | 96 +++++++++++++++++++++++++++++++++++++- stylesheets/_global.scss | 23 +++++++++ stylesheets/_settings.scss | 12 +++++ 6 files changed, 201 insertions(+), 2 deletions(-) create mode 100644 images/delete.svg diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 101522c33..a8df96028 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -567,6 +567,34 @@ "message": "Theme", "description": "Header for theme settings" }, + "clearDataHeader": { + "message": "Clear Data", + "description": "Header in the settings dialog for the section dealing with data deletion" + }, + "clearDataExplanation": { + "message": "This will clear all data in the application, removing all messages and saved account information.", + "description": "Text describing what the clear data button will do." + }, + "clearDataButton": { + "message": "Clear data", + "description": "Button in the settings dialog starting process to delete all data" + }, + "deleteAllDataHeader": { + "message": "Delete all data?", + "description": "Header of the full-screen delete data confirmation screen" + }, + "deleteAllDataBody": { + "message": "You are about to delete all of this application's saved account information, including all contacts and all messages. You can always link with your mobile device again, but that will not restore deleted messages.", + "description": "Text describing what exactly will happen if the user clicks the button to delete all data" + }, + "deleteAllDataButton": { + "message": "Delete all data", + "description": "Text of the button that deletes all data" + }, + "deleteAllDataProgress": { + "message": "Disconnecting and deleting all data", + "description": "Text of the button that deletes all data" + }, "notifications": { "message": "Notifications", "description": "Header for notification settings" diff --git a/background.html b/background.html index c9c0196bd..19e1ca226 100644 --- a/background.html +++ b/background.html @@ -612,6 +612,15 @@ {{ /isAudioNotificationSupported }} +
+
+
+

{{ clearDataHeader }}

+
+ +

{{ clearDataExplanation }}

+
+
+