From 2b11938084c0b5960ee399e19d65ffa5a71fd8ac Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Thu, 14 Dec 2017 16:32:17 -0500 Subject: [PATCH] KEYCLOAK-5932: Remove social idp from dropdown if already defined --- .../admin/resources/js/controllers/realm.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js index 6a438e465a..b54ea0f333 100644 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js @@ -860,9 +860,11 @@ module.controller('RealmIdentityProviderCtrl', function($scope, $filter, $upload $scope.serverInfo = serverInfo; $scope.allProviders = angular.copy(serverInfo.identityProviders); - + $scope.configuredProviders = angular.copy(realm.identityProviders); + removeUsedSocial(); + $scope.authFlows = []; for (var i=0 ; i