diff --git a/static/directives/manage-users-tab.html b/static/directives/manage-users-tab.html index c192fe06e..0245e928c 100644 --- a/static/directives/manage-users-tab.html +++ b/static/directives/manage-users-tab.html @@ -73,7 +73,7 @@ @@ -103,7 +103,7 @@ Take Ownership + quay-show="Features.QUOTA_MANAGEMENT" ng-if="(current_user.super_user && user.username == current_user.username) || !current_user.super_user"> Configure Quota diff --git a/static/js/directives/ui/manage-user-tab.js b/static/js/directives/ui/manage-user-tab.js index aba2c937c..59a026f23 100644 --- a/static/js/directives/ui/manage-user-tab.js +++ b/static/js/directives/ui/manage-user-tab.js @@ -15,7 +15,7 @@ angular.module('quay').directive('manageUserTab', function () { TableService, Features, StateService) { $scope.inReadOnlyMode = StateService.inReadOnlyMode(); $scope.Features = Features; - $scope.user = UserService.currentUser(); + UserService.updateUserIn($scope); $scope.users = null; $scope.orderedUsers = []; $scope.usersPerPage = 10; diff --git a/static/js/directives/ui/quota-management-view.js b/static/js/directives/ui/quota-management-view.js index 644210ad7..6c72810d1 100644 --- a/static/js/directives/ui/quota-management-view.js +++ b/static/js/directives/ui/quota-management-view.js @@ -72,6 +72,10 @@ angular.module('quay').directive('quotaManagementView', function () { } var loadOrgQuota = function () { + if (!Features.QUOTA_MANAGEMENT) { + return; + } + let params = null; let method = null; if ($scope.organization != null){