Ensure we fetch the latest update info

This is to bring the webadmin in sync
This commit is contained in:
Johannes Zellner
2017-06-13 22:18:39 +02:00
parent 0bddd5a2c6
commit 9780f77fa8

View File

@@ -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 () {