From 707001c403611eb4a1cd7fac32f221d319c04e5b Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 26 Mar 2021 16:56:15 +0100 Subject: [PATCH] gui: Add confirmation dialog for revert/override (fixes #7520) (#7522) --- gui/default/assets/lang/lang-en.json | 4 ++ gui/default/index.html | 5 ++- .../syncthing/core/syncthingController.js | 37 +++++++++++++++---- .../syncthing/folder/revertOverrideView.html | 33 +++++++++++++++++ gui/default/untrusted/index.html | 8 ++-- .../syncthing/core/syncthingController.js | 37 +++++++++++++------ .../deleteEncryptionFolderDialogView.html | 19 ---------- 7 files changed, 98 insertions(+), 45 deletions(-) create mode 100644 gui/default/syncthing/folder/revertOverrideView.html delete mode 100644 gui/default/untrusted/syncthing/folder/deleteEncryptionFolderDialogView.html diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index a8e89c238..4e1c1fe4f 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -25,6 +25,7 @@ "An external command handles the versioning. It has to remove the file from the shared folder. If the path to the application contains spaces, it should be quoted.": "An external command handles the versioning. It has to remove the file from the shared folder. If the path to the application contains spaces, it should be quoted.", "Anonymous Usage Reporting": "Anonymous Usage Reporting", "Anonymous usage report format has changed. Would you like to move to the new format?": "Anonymous usage report format has changed. Would you like to move to the new format?", + "Are you sure you want to continue?": "Are you sure you want to continue?", "Are you sure you want to permanently delete all these files?": "Are you sure you want to permanently delete all these files?", "Are you sure you want to remove device {%name%}?": "Are you sure you want to remove device {{name}}?", "Are you sure you want to remove folder {%label%}?": "Are you sure you want to remove folder {{label}}?", @@ -327,6 +328,8 @@ "The entered device ID does not look valid. It should be a 52 or 56 character string consisting of letters and numbers, with spaces and dashes being optional.": "The entered device ID does not look valid. It should be a 52 or 56 character string consisting of letters and numbers, with spaces and dashes being optional.", "The folder ID cannot be blank.": "The folder ID cannot be blank.", "The folder ID must be unique.": "The folder ID must be unique.", + "The folder content on other devices will be overwritten to become identical with this device. Files not present here will be deleted on other devices.": "The folder content on other devices will be overwritten to become identical with this device. Files not present here will be deleted on other devices.", + "The folder content on this device will be overwritten to become identical with other devices. Files newly added here will be deleted.": "The folder content on this device will be overwritten to become identical with other devices. Files newly added here will be deleted.", "The folder path cannot be blank.": "The folder path cannot be blank.", "The following intervals are used: for the first hour a version is kept every 30 seconds, for the first day a version is kept every hour, for the first 30 days a version is kept every day, until the maximum age a version is kept every week.": "The following intervals are used: for the first hour a version is kept every 30 seconds, for the first day a version is kept every hour, for the first 30 days a version is kept every day, until the maximum age a version is kept every week.", "The following items could not be synchronized.": "The following items could not be synchronized.", @@ -383,6 +386,7 @@ "Waiting to Clean": "Waiting to Clean", "Waiting to Scan": "Waiting to Scan", "Waiting to Sync": "Waiting to Sync", + "Warning": "Warning", "Warning, this path is a parent directory of an existing folder \"{%otherFolder%}\".": "Warning, this path is a parent directory of an existing folder \"{{otherFolder}}\".", "Warning, this path is a parent directory of an existing folder \"{%otherFolderLabel%}\" ({%otherFolder%}).": "Warning, this path is a parent directory of an existing folder \"{{otherFolderLabel}}\" ({{otherFolder}}).", "Warning, this path is a subdirectory of an existing folder \"{%otherFolder%}\".": "Warning, this path is a subdirectory of an existing folder \"{{otherFolder}}\".", diff --git a/gui/default/index.html b/gui/default/index.html index c06a3ed45..0d9926bfb 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -535,10 +535,10 @@