Fetch subscription directly after the cloudron was registered to update the ui
This commit is contained in:
@@ -112,7 +112,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
callback();
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Client.getStatus(function (error, status) {
|
||||
if (error) return $scope.error(error);
|
||||
|
||||
@@ -273,7 +273,10 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
return;
|
||||
}
|
||||
|
||||
fetchAppstoreConfig();
|
||||
fetchAppstoreConfig(function (error) {
|
||||
if (error) return console.error('Unable to fetch appstore config.', error);
|
||||
$scope.$parent.fetchAppstoreProfileAndSubscription(function () {});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user