Log/error fields changed name
This commit is contained in:
@@ -171,7 +171,7 @@
|
|||||||
<div class="panel panel-warning">
|
<div class="panel panel-warning">
|
||||||
<div class="panel-heading"><h3 class="panel-title"><span class="fa fa-exclamation-circle"></span><span translate>Notice</span></h3></div>
|
<div class="panel-heading"><h3 class="panel-title"><span class="fa fa-exclamation-circle"></span><span translate>Notice</span></h3></div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p ng-repeat="err in errorList()"><small>{{err.time | date:"yyyy-MM-dd HH:mm:ss"}}:</small> {{friendlyDevices(err.error)}}</p>
|
<p ng-repeat="err in errorList()"><small>{{err.when | date:"yyyy-MM-dd HH:mm:ss"}}:</small> {{friendlyDevices(err.message)}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer">
|
<div class="panel-footer">
|
||||||
<button type="button" class="btn btn-sm btn-default pull-right" ng-click="clearErrors()">
|
<button type="button" class="btn btn-sm btn-default pull-right" ng-click="clearErrors()">
|
||||||
|
|||||||
@@ -1047,12 +1047,12 @@ angular.module('syncthing.core')
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return $scope.errors.filter(function (e) {
|
return $scope.errors.filter(function (e) {
|
||||||
return e.time > $scope.seenError;
|
return e.when > $scope.seenError;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.clearErrors = function () {
|
$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');
|
$http.post(urlbase + '/system/error/clear');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user