gui: Make icons and directory information in local device summary consistent with folders (fixes #4100)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4200
This commit is contained in:
snugghash
2017-06-07 10:34:45 +00:00
committed by Jakob Borg
parent 7a15fef3b8
commit 3395992abd
2 changed files with 9 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ angular.module('syncthing.core')
$scope.localStateTotal = {
bytes: 0,
directories: 0,
files: 0
};
@@ -448,12 +449,14 @@ angular.module('syncthing.core')
function recalcLocalStateTotal () {
$scope.localStateTotal = {
bytes: 0,
directories: 0,
files: 0
};
for (var f in $scope.model) {
$scope.localStateTotal.bytes += $scope.model[f].localBytes;
$scope.localStateTotal.files += $scope.model[f].localFiles;
$scope.localStateTotal.directories += $scope.model[f].localDirectories;
}
}