From 58f1191f2da8bebc815774b284ee255a6c096c45 Mon Sep 17 00:00:00 2001
From: Lode Hoste
Date: Sat, 8 Aug 2015 22:01:16 +0200
Subject: [PATCH] Add minimum disk free percentage to GUI
---
gui/syncthing/core/syncthingController.js | 2 ++
gui/syncthing/folder/editFolderModalView.html | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/gui/syncthing/core/syncthingController.js b/gui/syncthing/core/syncthingController.js
index 9710880e..a104e881 100755
--- a/gui/syncthing/core/syncthingController.js
+++ b/gui/syncthing/core/syncthingController.js
@@ -1057,6 +1057,7 @@ angular.module('syncthing.core')
selectedDevices: {}
};
$scope.currentFolder.rescanIntervalS = 60;
+ $scope.currentFolder.minDiskFreePct = 1;
$scope.currentFolder.order = "random";
$scope.currentFolder.fileVersioningSelector = "none";
$scope.currentFolder.trashcanClean = 0;
@@ -1077,6 +1078,7 @@ angular.module('syncthing.core')
id: folder,
selectedDevices: {},
rescanIntervalS: 60,
+ minDiskFreePct: 1,
fileVersioningSelector: "none",
trashcanClean: 0,
simpleKeep: 5,
diff --git a/gui/syncthing/folder/editFolderModalView.html b/gui/syncthing/folder/editFolderModalView.html
index b30f4c4c..0e5c336e 100644
--- a/gui/syncthing/folder/editFolderModalView.html
+++ b/gui/syncthing/folder/editFolderModalView.html
@@ -37,6 +37,13 @@
The rescan interval must be a non-negative number of seconds.
+