Merge pull request #1416 from coreos-inc/fixsetupbill

Make sure to hide the billing header when billing is disabled
This commit is contained in:
josephschorr 2016-04-28 15:42:11 -04:00
commit 5a85dc01d9
3 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ angular.module('quay').directive('billingManagementPanel', function () {
'organization': '=organization',
'isEnabled': '=isEnabled'
},
controller: function($scope, $element, PlanService, ApiService) {
controller: function($scope, $element, PlanService, ApiService, Features) {
$scope.currentCard = null;
$scope.subscription = null;
$scope.updating = true;
@ -41,7 +41,7 @@ angular.module('quay').directive('billingManagementPanel', function () {
};
var update = function() {
if (!$scope.isEnabled || !($scope.user || $scope.organization)) {
if (!$scope.isEnabled || !($scope.user || $scope.organization) || !Features.BILLING) {
return;
}

View file

@ -119,7 +119,7 @@
</div>
<!-- Billing Information -->
<div class="settings-section">
<div class="settings-section" quay-show="Features.BILLING">
<h3>Billing Information</h3>
<div class="billing-management-panel" organization="organization" is-enabled="showBillingCounter"></div>
</div>

View file

@ -131,7 +131,7 @@
</div>
<!-- Billing Information -->
<div class="settings-section">
<div class="settings-section" quay-show="Features.BILLING">
<h3>Billing Information</h3>
<div class="billing-management-panel" user="context.viewuser" is-enabled="showBillingCounter"></div>
</div>