hide tab when no client storage providers
This commit is contained in:
parent
53f96099fb
commit
215bbaac6c
2 changed files with 3 additions and 1 deletions
|
@ -738,6 +738,7 @@ module.controller('ClientListCtrl', function($scope, realm, Client, serverInfo,
|
|||
$scope.currentPageInput = 1;
|
||||
$scope.numberOfPages = 1;
|
||||
$scope.pageSize = 20;
|
||||
$scope.clientStorageProviders = serverInfo.componentTypes['org.keycloak.storage.client.ClientStorageProvider'];
|
||||
|
||||
Client.query({realm: realm.realm, viewableOnly: true}).$promise.then(function(clients) {
|
||||
$scope.numberOfPages = Math.ceil(clients.length/$scope.pageSize);
|
||||
|
@ -2393,6 +2394,7 @@ module.controller('ClientStoresCtrl', function($scope, $location, $route, realm,
|
|||
console.log('ClientStoresCtrl ++++****');
|
||||
$scope.realm = realm;
|
||||
$scope.providers = serverInfo.componentTypes['org.keycloak.storage.client.ClientStorageProvider'];
|
||||
$scope.clientStorageProviders = serverInfo.componentTypes['org.keycloak.storage.client.ClientStorageProvider'];
|
||||
$scope.instancesLoaded = false;
|
||||
|
||||
if (!$scope.providers) $scope.providers = [];
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<a href="#/realms/{{realm.realm}}/clients">{{:: 'lookup' | translate}}</a>
|
||||
<kc-tooltip>{{:: 'clients.tooltip' | translate}}</kc-tooltip>
|
||||
</li>
|
||||
<li ng-class="{active: path[2] == 'client-stores'}">
|
||||
<li ng-class="{active: path[2] == 'client-stores'}" data-ng-hide="!clientStorageProviders || clientStorageProviders.length == 0">
|
||||
<a href="#/realms/{{realm.realm}}/client-stores">{{:: 'client-storage' | translate}}</a>
|
||||
<kc-tooltip>{{:: 'client-stores.tooltip' | translate}}</kc-tooltip>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue