Add appstore accessToken to subscription setup links

This commit is contained in:
Johannes Zellner
2020-02-21 12:34:40 +01:00
parent af8bb1f0e8
commit 81fb4ab435
5 changed files with 32 additions and 43 deletions

View File

@@ -387,11 +387,8 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
});
}
$scope.pollSubscriptionStatus = function () {
if (!$scope.$parent) return; // user changed view. otherwise we get an error that $scope.$parent is null
// poll on the main controller
$scope.$parent.pollSubscriptionStatus();
$scope.openSubscriptionSetup = function () {
Client.openSubscriptionSetup($scope.subscription);
};
$('#avatarFileInput').get(0).onchange = function (event) {