KEYCLOAK-3949: User Federation "welcome" screen is always shown for a
while even if some providers are there.
This commit is contained in:
parent
e515d7bbbe
commit
2cca3bf570
2 changed files with 3 additions and 2 deletions
|
@ -630,6 +630,7 @@ module.controller('UserFederationCtrl', function($scope, $location, $route, real
|
|||
console.log('UserFederationCtrl ++++****');
|
||||
$scope.realm = realm;
|
||||
$scope.providers = serverInfo.componentTypes['org.keycloak.storage.UserStorageProvider'];
|
||||
$scope.instancesLoaded = false;
|
||||
|
||||
if (!$scope.providers) $scope.providers = [];
|
||||
|
||||
|
@ -709,7 +710,7 @@ module.controller('UserFederationCtrl', function($scope, $location, $route, real
|
|||
data[i].isUserFederationProvider = true;
|
||||
$scope.instances.push(data[i]);
|
||||
}
|
||||
|
||||
$scope.instancesLoaded = true;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<span>{{:: 'user-federation' | translate}}</span>
|
||||
</h1>
|
||||
|
||||
<div class="blank-slate-pf" data-ng-hide="instances && instances.length > 0">
|
||||
<div class="blank-slate-pf" data-ng-hide="!instancesLoaded || (instances && instances.length > 0)">
|
||||
<div class="blank-slate-pf-icon">
|
||||
<span class="fa fa-database"></span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue