Refetch the subscription also on the main controller
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user