Add a button to check updates instantly

Part of #293
This commit is contained in:
Girish Ramakrishnan
2017-04-12 18:06:18 -07:00
parent 1029402d1e
commit 1f55bb52fc
3 changed files with 29 additions and 6 deletions

View File

@@ -433,6 +433,16 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
pattern: '',
currentPattern: '',
checkNow: function () {
$scope.autoUpdate.busy = true;
Client.checkForUpdates(function (error) {
if (error) $scope.autoUpdate.error = error.message;
$scope.autoUpdate.busy = false;
});
},
submit: function () {
if ($scope.autoUpdate.pattern === $scope.autoUpdate.currentPattern) return;