Allow major upgrades

This commit is contained in:
Jakob Borg
2015-04-22 21:41:08 +09:00
parent b35958d024
commit 542716e216
4 changed files with 49 additions and 2 deletions

View File

@@ -698,6 +698,7 @@ angular.module('syncthing.core')
$scope.upgrade = function () {
restarting = true;
$('#majorUpgrade').modal('hide');
$('#upgrading').modal();
$http.post(urlbase + '/system/upgrade').success(function () {
$('#restarting').modal();
@@ -707,6 +708,10 @@ angular.module('syncthing.core')
});
};
$scope.upgradeMajor = function () {
$('#majorUpgrade').modal();
};
$scope.shutdown = function () {
restarting = true;
$http.post(urlbase + '/system/shutdown').success(function () {