diff --git a/gui/app.js b/gui/app.js index 1325b009..48036e1f 100644 --- a/gui/app.js +++ b/gui/app.js @@ -533,6 +533,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca $scope.tmpOptions = angular.copy($scope.config.Options); $scope.tmpOptions.UREnabled = ($scope.tmpOptions.URAccepted > 0); $scope.tmpOptions.DeviceName = $scope.thisDevice().Name; + $scope.tmpOptions.AutoUpgradeEnabled = ($scope.tmpOptions.AutoUpgradeIntervalH > 0); $scope.tmpGUI = angular.copy($scope.config.GUI); $('#settings').modal(); }; @@ -563,6 +564,13 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca $scope.tmpOptions.URAccepted = -1; } + // Check if auto-upgrade has been enabled or disabled + if ($scope.tmpOptions.AutoUpgradeEnabled) { + $scope.tmpOptions.AutoUpgradeIntervalH = $scope.tmpOptions.AutoUpgradeIntervalH || 12; + } else { + $scope.tmpOptions.AutoUpgradeIntervalH = 0; + } + // Check if protocol will need to be changed on restart if ($scope.config.GUI.UseTLS !== $scope.tmpGUI.UseTLS) { $scope.protocolChanged = true; diff --git a/gui/index.html b/gui/index.html index e4584783..ec73376a 100644 --- a/gui/index.html +++ b/gui/index.html @@ -606,26 +606,36 @@ -