Button to rescan all folders, fixes #1151

This commit is contained in:
Karol Różycki committed 2015-02-12 21:03:35 +01:00
1 parent bbaeca96eb
commit ec160f1f0a
5 files changed
+31 -11

No files matched your search

@@ -1156,6 +1156,10 @@ angular.module('syncthing.core')
$scope.reportPreview = true;
};
$scope.rescanAllFolders = function () {
$http.post(urlbase + "/scan");
};
$scope.rescanFolder = function (folder) {
$http.post(urlbase + "/scan?folder=" + encodeURIComponent(folder));
};