KEYCLOAK-3949: User Federation "welcome" screen is always shown for a

while even if some providers are there.
This commit is contained in:
Stan Silvert 2016-11-21 14:33:54 -05:00
parent e515d7bbbe
commit 2cca3bf570
2 changed files with 3 additions and 2 deletions

View file

@ -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;
});
});

View file

@ -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>