Log/error fields changed name

This commit is contained in:
Jakob Borg committed 2015-10-12 14:18:53 +09:00
1 parent baf5191433
commit 240e7b0835
3 files changed
+11 -7

No files matched your search

+2 -2
View File
@@ -1047,12 +1047,12 @@ angular.module('syncthing.core')
return [];
}
return $scope.errors.filter(function (e) {
return e.time > $scope.seenError;
return e.when > $scope.seenError;
});
};
$scope.clearErrors = function () {
$scope.seenError = $scope.errors[$scope.errors.length - 1].time;
$scope.seenError = $scope.errors[$scope.errors.length - 1].when;
$http.post(urlbase + '/system/error/clear');
};