Merge pull request #3533 from ssilvert/federation-blank-slate-showing
KEYCLOAK-3949: User Federation "welcome" screen is always shown for a
This commit is contained in:
commit
725f42e185
2 changed files with 3 additions and 2 deletions
|
@ -637,6 +637,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 = [];
|
||||
|
||||
|
@ -716,7 +717,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