Disable autoupgrade if not supported (fixes #763)

This commit is contained in:
Audrius Butkevicius
2014-09-30 23:01:32 +01:00
parent 32d2e78e3c
commit a267bca8fb
4 changed files with 9 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
$scope.reportPreview = false;
$scope.folders = {};
$scope.seenError = '';
$scope.upgradeInfo = {};
$scope.upgradeInfo = null;
$scope.stats = {};
$http.get(urlbase + "/lang").success(function (langs) {
@@ -412,7 +412,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
$http.get(urlbase + '/upgrade').success(function (data) {
$scope.upgradeInfo = data;
}).error(function () {
$scope.upgradeInfo = {};
$scope.upgradeInfo = null;
});
};