|
|
@@ -187,13 +187,14 @@ angular.module('syncthing.core')
|
|
|
$scope.version = data;
|
|
|
}).error($scope.emitHTTPError);
|
|
|
|
|
|
- $http.get(urlbase + '/svc/report').success(function (data) {
|
|
|
- $scope.reportData = data;
|
|
|
- if ($scope.system && $scope.config.options.urAccepted > -1 && $scope.config.options.urSeen < $scope.system.urVersionMax && $scope.config.options.urAccepted < $scope.system.urVersionMax) {
|
|
|
- // Usage reporting format has changed, prompt the user to re-accept.
|
|
|
+ if ($scope.system && $scope.config.options.urAccepted > -1 && $scope.config.options.urSeen < $scope.system.urVersionMax && $scope.config.options.urAccepted < $scope.system.urVersionMax) {
|
|
|
+ // Usage reporting decision has not been taken or format
|
|
|
+ // has changed, prompt the user to (re-)accept.
|
|
|
+ $http.get(urlbase + '/svc/report').success(function (data) {
|
|
|
+ $scope.reportData = data;
|
|
|
showModal('#ur');
|
|
|
- }
|
|
|
- }).error($scope.emitHTTPError);
|
|
|
+ }).error($scope.emitHTTPError);
|
|
|
+ }
|
|
|
|
|
|
$http.get(urlbase + '/system/upgrade').success(function (data) {
|
|
|
$scope.upgradeInfo = data;
|