gui: Remove cleanupIntervalS leftovers from External Versioning (ref #7360) (#7378)

This commit is contained in:
tomasz1986 2021-02-20 01:49:56 +09:00 committed by GitHub
parent be630691b1
commit b1fbd87680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -2085,7 +2085,6 @@ angular.module('syncthing.core')
'params': {
'command': '' + folderCfg._guiVersioning.externalCommand
},
'cleanupIntervalS': folderCfg._guiVersioning.cleanupIntervalS
};
break;
default:

View File

@ -2125,7 +2125,6 @@ angular.module('syncthing.core')
'params': {
'command': '' + folderCfg._guiVersioning.externalCommand
},
'cleanupIntervalS': folderCfg._guiVersioning.cleanupIntervalS
};
break;
default:

View File

@ -134,7 +134,7 @@
<span translate ng-if="folderEditor.externalCommand.$error.required && folderEditor.externalCommand.$dirty">The path cannot be blank.</span>
</p>
</div>
<div class="form-group" ng-if="currentFolder._guiVersioning.selector != 'none'" ng-class="{'has-error': folderEditor._guiVersioning.cleanupIntervalS.$invalid && folderEditor._guiVersioning.cleanupIntervalS.$dirty}">
<div class="form-group" ng-if="currentFolder._guiVersioning.selector != 'none' && currentFolder._guiVersioning.selector != 'external'" ng-class="{'has-error': folderEditor._guiVersioning.cleanupIntervalS.$invalid && folderEditor._guiVersioning.cleanupIntervalS.$dirty}">
<label translate for="versioningCleanupIntervalS">Cleanup Interval</label>
<div class="input-group">
<input name="versioningCleanupIntervalS" id="versioningCleanupIntervalS" class="form-control text-right" type="number" ng-model="currentFolder._guiVersioning.cleanupIntervalS" required="" min="0" max="31536000" aria-required="true" />