Button to rescan all folders, fixes #1151

This commit is contained in:
Karol Różycki
2015-02-11 19:52:59 +01:00
parent bbaeca96eb
commit ec160f1f0a
5 changed files with 31 additions and 11 deletions

View File

@@ -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));
};