all: Fix versioning path handling (#7407)
This commit is contained in:
@@ -72,7 +72,6 @@ angular.module('syncthing.core')
|
||||
simpleKeep: 5,
|
||||
staggeredMaxAge: 365,
|
||||
staggeredCleanInterval: 3600,
|
||||
versionsPath: "",
|
||||
externalCommand: "",
|
||||
};
|
||||
|
||||
@@ -1912,9 +1911,6 @@ angular.module('syncthing.core')
|
||||
|
||||
$scope.currentFolder._guiVersioning.cleanupIntervalS = +currentVersioning.cleanupIntervalS;
|
||||
$scope.currentFolder._guiVersioning.selector = currentVersioning.type;
|
||||
if (currentVersioning.type !== 'external') {
|
||||
$scope.currentFolder._guiVersioning.versionsPath = currentVersioning.params.versionsPath;
|
||||
}
|
||||
|
||||
// Apply parameters currently in use
|
||||
switch (currentVersioning.type) {
|
||||
@@ -2053,7 +2049,6 @@ angular.module('syncthing.core')
|
||||
folderCfg.versioning.type = folderCfg._guiVersioning.selector;
|
||||
if ($scope.internalVersioningEnabled()) {
|
||||
folderCfg.versioning.cleanupIntervalS = folderCfg._guiVersioning.cleanupIntervalS;
|
||||
folderCfg.versioning.versionsPath = folderCfg._guiVersioning.versionsPath;
|
||||
}
|
||||
switch (folderCfg._guiVersioning.selector) {
|
||||
case "trashcan":
|
||||
|
||||
@@ -133,8 +133,8 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group" ng-if="internalVersioningEnabled()">
|
||||
<label translate for="versionsPath">Versions Path</label>
|
||||
<input name="versionsPath" id="versionsPath" class="form-control" type="text" ng-model="currentFolder._guiVersioning.versionsPath" />
|
||||
<label translate for="fsPath">Versions Path</label>
|
||||
<input name="fsPath" id="fsPath" class="form-control" type="text" ng-model="currentFolder.versioning.fsPath" />
|
||||
<p translate class="help-block">Path where versions should be stored (leave empty for the default .stversions directory in the shared folder).</p>
|
||||
</div>
|
||||
<div class="form-group" ng-if="currentFolder._guiVersioning.selector=='external'" ng-class="{'has-error': folderEditor.externalCommand.$invalid && folderEditor.externalCommand.$dirty}">
|
||||
|
||||
Reference in New Issue
Block a user