MCPcopy Index your code
hub / github.com/syncthing/syncthing / refreshCompletion

Function refreshCompletion

gui/default/syncthing/core/syncthingController.js:786–804  ·  view source on GitHub ↗
(device, folder)

Source from the content-addressed store, hash-verified

784 }
785
786 function refreshCompletion(device, folder) {
787 if (device === $scope.myID) {
788 return;
789 }
790
791 $http.get(urlbase + '/db/completion?device=' + device + '&folder=' + encodeURIComponent(folder)).success(function (data) {
792 if (!$scope.completion[device]) {
793 $scope.completion[device] = {};
794 }
795 $scope.completion[device][folder] = data;
796 recalcCompletion(device);
797 }).error(function (data, status, headers, config) {
798 if (status === 404) {
799 console.log("refreshCompletion:", data);
800 } else {
801 $scope.emitHTTPError(data, status, headers, config);
802 }
803 });
804 }
805
806 function refreshConnectionStats() {
807 return $http.get(urlbase + '/system/connections').success(function (data) {

Callers 1

updateLocalConfigFunction · 0.85

Calls 3

recalcCompletionFunction · 0.85
logMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected