mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
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 <twilczynski@naver.com>
This commit is contained in:
parent
adce6fa473
commit
9f4d23cacf
@ -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",
|
||||
|
@ -538,8 +538,8 @@
|
||||
<span ng-if="folder.versioning.type == 'simple' && folder.versioning.params.keep != versioningDefaults.simpleKeep" tooltip data-original-title="{{'Keep Versions' | translate}}">
|
||||
 <span class="fa fa-file-archive-o"></span> {{folder.versioning.params.keep}}
|
||||
</span>
|
||||
<span ng-if="folder.versioning.type == 'staggered' && folder.versioning.params.maxAge != versioningDefaults.staggeredMaxAge" tooltip data-original-title="{{'Maximum Age' | translate}}">
|
||||
 <span class="fa fa-calendar"></span> {{folder.versioning.params.maxAge | duration}}
|
||||
<span ng-if="folder.versioning.type == 'staggered' && folder.versioning.params.maxAge / 86400 != versioningDefaults.staggeredMaxAge" tooltip data-original-title="{{'Maximum Age' | translate}}">
|
||||
 <span class="fa fa-calendar"></span> <span ng-if="folder.versioning.params.maxAge == 0" translate>Forever</span><span ng-if="folder.versioning.params.maxAge > 0">{{folder.versioning.params.maxAge | duration}}</span>
|
||||
</span>
|
||||
<span ng-if="folder.versioning.cleanupIntervalS != versioningDefaults.cleanupIntervalS" tooltip data-original-title="{{'Cleanup Interval' | translate}}">
|
||||
 <span class="fa fa-recycle"></span> <span ng-if="folder.versioning.cleanupIntervalS == 0" translate>Disabled</span><span ng-if="folder.versioning.cleanupIntervalS > 0">{{folder.versioning.cleanupIntervalS | duration}}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user