From 4d93648f75f029e37d1978d1936d2045cf66e09d Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Sat, 2 Sep 2023 12:19:18 +0200 Subject: [PATCH] gui: Don't hide default values for folders and devices (#8987) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, some of the information for folders and devices displayed in the GUI relies on arbitrary values that come pre-set as defaults on a fresh Syncthing installation, i.e. if the value matches the default, it is hidden, and if does not, then it is displayed. With this change, the GUI always displays all information regardless of their value, making the overall experience more consistent and predictable. Signed-off-by: Tomasz WilczyƄski --- gui/default/index.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index 776554008..e9691a02b 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -474,9 +474,10 @@ {{model[folder.id].receiveOnlyTotalItems | alwaysNumber | localeNumber}} items, ~{{model[folder.id].receiveOnlyChangedBytes | binary}}B - +  Folder Type + Send & Receive Send Only Receive Only Receive Encrypted @@ -521,7 +522,7 @@ - +  File Pull Order Random @@ -542,21 +543,21 @@ External - -   {{folder.versioning.params.cleanoutDays * 86400 | duration:"d"}} + +   Disabled{{folder.versioning.params.cleanoutDays * 86400 | duration:"d"}} - +  {{folder.versioning.params.keep}} - +  Forever{{folder.versioning.params.maxAge | duration}} - +  Disabled{{folder.versioning.cleanupIntervalS | duration}} - -   {{folder.versioning.fsPath}} + +   {{folder.versioning.fsPath === '' ? '.stversions' : folder.versioning.fsPath}} @@ -876,10 +877,11 @@ {{deviceCfg.allowedNetworks.join(", ")}} - +  Compression All Data + Metadata Only Off