From 6497a5b18b30149f8c3b2a08fdcfb231408de370 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 28 Apr 2016 15:41:32 -0400 Subject: [PATCH] Make sure to hide the billing header when billing is disabled --- static/js/directives/ui/billing-management-panel.js | 4 ++-- static/partials/org-view.html | 2 +- static/partials/user-view.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/directives/ui/billing-management-panel.js b/static/js/directives/ui/billing-management-panel.js index e3d3e31f8..5cb93db91 100644 --- a/static/js/directives/ui/billing-management-panel.js +++ b/static/js/directives/ui/billing-management-panel.js @@ -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; } diff --git a/static/partials/org-view.html b/static/partials/org-view.html index d7adc8ac3..d880c0630 100644 --- a/static/partials/org-view.html +++ b/static/partials/org-view.html @@ -119,7 +119,7 @@ -
+

Billing Information

diff --git a/static/partials/user-view.html b/static/partials/user-view.html index ba6fff05a..8487098eb 100644 --- a/static/partials/user-view.html +++ b/static/partials/user-view.html @@ -131,7 +131,7 @@
-
+

Billing Information