Refetch the subscription also on the main controller

This commit is contained in:
Johannes Zellner
2018-03-28 14:19:34 +02:00
parent 611f54c237
commit 551912145e
2 changed files with 21 additions and 11 deletions
+3
View File
@@ -602,6 +602,9 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.subscription = result;
// also reload the subscription on the main controller
$scope.$parent.fetchAppstoreProfileAndSubscription(function () {});
// check again to give more immediate feedback once a subscription was setup
if (result.plan.id === 'free') $timeout(getSubscription, 10000);
});