From 9f4d23cacfebf51cd94fa2f87349fa14cb3f06de Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Tue, 26 Jul 2022 10:12:15 +0200 Subject: [PATCH] gui: Fix detailed staggered versioning information in folder info (ref #8348) (#8433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, there are two issues with the detailed staggered versioning information displayed in the folder info. Firstly, the maxAge value of 365d is displayed despite matching the default. Secondly, there is no consideration for the special case of maxAge equal to 0, meaning that versions are kept forever. This commit fixes both of those issues, so that the default maxAge is not displayed and its value of 0 is displayed as "forever". Signed-off-by: Tomasz WilczyƄski --- gui/default/assets/lang/lang-en.json | 1 + gui/default/index.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index 431218b1a..829679582 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -155,6 +155,7 @@ "Folder type \"{%receiveEncrypted%}\" cannot be changed after adding the folder. You need to remove the folder, delete or decrypt the data on disk, and add the folder again.": "Folder type \"{{receiveEncrypted}}\" cannot be changed after adding the folder. You need to remove the folder, delete or decrypt the data on disk, and add the folder again.", "Folders": "Folders", "For the following folders an error occurred while starting to watch for changes. It will be retried every minute, so the errors might go away soon. If they persist, try to fix the underlying issue and ask for help if you can't.": "For the following folders an error occurred while starting to watch for changes. It will be retried every minute, so the errors might go away soon. If they persist, try to fix the underlying issue and ask for help if you can't.", + "Forever": "Forever", "Full Rescan Interval (s)": "Full Rescan Interval (s)", "GUI": "GUI", "GUI Authentication Password": "GUI Authentication Password", diff --git a/gui/default/index.html b/gui/default/index.html index 8562c7586..3764e6b81 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -538,8 +538,8 @@  {{folder.versioning.params.keep}} - -   {{folder.versioning.params.maxAge | duration}} + +   Forever{{folder.versioning.params.maxAge | duration}}  Disabled{{folder.versioning.cleanupIntervalS | duration}}