Set defaults correctly for autoNormalize

The default:"foo" struct tags aren't actually used for folder configs.
This commit is contained in:
Jakob Borg
2015-03-21 15:33:31 +01:00
parent fc483cdfc6
commit ad9ea07309
5 changed files with 34 additions and 8 deletions

View File

@@ -922,7 +922,7 @@ angular.module('syncthing.core')
$scope.currentFolder.staggeredMaxAge = 365;
}
$scope.currentFolder.externalCommand = $scope.currentFolder.externalCommand || "";
$scope.editingExisting = true;
$scope.folderEditor.$setPristine();
$('#editFolder').modal();
@@ -939,6 +939,7 @@ angular.module('syncthing.core')
$scope.currentFolder.staggeredCleanInterval = 3600;
$scope.currentFolder.staggeredVersionsPath = "";
$scope.currentFolder.externalCommand = "";
$scope.currentFolder.autoNormalize = true;
$scope.editingExisting = false;
$scope.folderEditor.$setPristine();
$('#editFolder').modal();
@@ -959,6 +960,7 @@ angular.module('syncthing.core')
$scope.currentFolder.staggeredCleanInterval = 3600;
$scope.currentFolder.staggeredVersionsPath = "";
$scope.currentFolder.externalCommand = "";
$scope.currentFolder.autoNormalize = true;
$scope.editingExisting = false;
$scope.folderEditor.$setPristine();
$('#editFolder').modal();