Show different subscription bubbles based on the billing and subscription status

This commit is contained in:
Johannes Zellner
2018-03-28 12:26:24 +02:00
parent 09f1bb4653
commit 8196f76847
2 changed files with 21 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
$scope.status = {};
$scope.client = Client;
$scope.appstoreConfig = {};
$scope.subscription = {};
$scope.ready = false;
$scope.hideNavBarActions = $location.path() === '/logs';
@@ -210,6 +212,13 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
if (error) return console.error(error);
$scope.appstoreConfig.profile = result;
AppStore.getSubscription($scope.appstoreConfig, function (error, result) {
if (error) return console.error(error);
$scope.subscription = result;
$scope.ready = true;
});
});
});
}