From 9780f77fa82e641d0596977f86b6cc0f4700a4ec Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 13 Jun 2017 22:18:39 +0200 Subject: [PATCH] Ensure we fetch the latest update info This is to bring the webadmin in sync --- webadmin/src/js/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webadmin/src/js/main.js b/webadmin/src/js/main.js index c25d04705..63beb1b69 100644 --- a/webadmin/src/js/main.js +++ b/webadmin/src/js/main.js @@ -35,6 +35,13 @@ angular.module('Application').controller('MainController', ['$scope', '$route', $scope.waitingForPlanSelection = false; $('#setupSubscriptionModal').on('hide.bs.modal', function () { $scope.waitingForPlanSelection = false; + + // check for updates to stay in sync + Client.checkForUpdates(function (error) { + if (error) return console.error(error); + + Client.refreshConfig(); + }); }); $scope.waitForPlanSelection = function () {