gui: Improve display of local size, ignore pattern status (fixes #3623)

The discrepancy between global and local sizes is fine and expected in
the presence of ignores. This just moves the "we have ignore patterns"
indication to the actual local size metric, as an explanation of why it
may differ from the global size...
This commit is contained in:
Jakob Borg
2016-10-17 16:07:58 +02:00
parent 4e8c8d7e2c
commit ff0ebc196c
3 changed files with 15 additions and 8 deletions

View File

@@ -690,6 +690,15 @@ angular.module('syncthing.core')
return 'info';
};
$scope.neededItems = function (folderID) {
if (!$scope.model[folderID]) {
return 0
}
return $scope.model[folderID].needFiles + $scope.model[folderID].needDirectories +
$scope.model[folderID].needSymlinks + $scope.model[folderID].needDeletes;
};
$scope.syncPercentage = function (folder) {
if (typeof $scope.model[folder] === 'undefined') {
return 100;