update to latest keycloak-admin (#234)

* update to latest keycloak-admin

also fix name of project

* removed workaround type
This commit is contained in:
Erik Jan de Wit 2020-11-24 21:45:12 +01:00 committed by GitHub
parent 29a1d82c7f
commit 2e64f144d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 14 deletions

View file

@ -1,5 +1,5 @@
{ {
"name": "keycloak-admin", "name": "keycloak-admin-ui",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
@ -22,7 +22,7 @@
"@patternfly/react-table": "4.16.20", "@patternfly/react-table": "4.16.20",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"i18next": "^19.6.2", "i18next": "^19.6.2",
"keycloak-admin": "^1.14.1", "keycloak-admin": "1.14.2",
"react": "^16.8.5", "react": "^16.8.5",
"react-dom": "^16.8.5", "react-dom": "^16.8.5",
"react-hook-form": "^6.8.2", "react-hook-form": "^6.8.2",

View file

@ -26,10 +26,6 @@ import { useAdminClient } from "../context/auth/AdminClient";
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog"; import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
import "./user-federation.css"; import "./user-federation.css";
type Config = {
enabled: string[];
};
export const UserFederationSection = () => { export const UserFederationSection = () => {
const [userFederations, setUserFederations] = useState< const [userFederations, setUserFederations] = useState<
ComponentRepresentation[] ComponentRepresentation[]
@ -112,14 +108,12 @@ export const UserFederationSection = () => {
userFederation.providerId === "ldap" ? "LDAP" : "Kerberos" userFederation.providerId === "ldap" ? "LDAP" : "Kerberos"
} }
labelText={ labelText={
(userFederation.config as Config)!.enabled[0] !== "false" userFederation.config!["enabled"][0] !== "false"
? `${t("common:enabled")}` ? `${t("common:enabled")}`
: `${t("common:disabled")}` : `${t("common:disabled")}`
} }
labelColor={ labelColor={
(userFederation.config as Config)!.enabled[0] !== "false" userFederation.config!["enabled"][0] !== "false" ? "blue" : "gray"
? "blue"
: "gray"
} }
/> />
</GalleryItem> </GalleryItem>

View file

@ -12489,10 +12489,10 @@ jsx-ast-utils@^2.2.1, jsx-ast-utils@^2.2.3, jsx-ast-utils@^2.4.1:
array-includes "^3.1.1" array-includes "^3.1.1"
object.assign "^4.1.0" object.assign "^4.1.0"
keycloak-admin@^1.14.1: keycloak-admin@1.14.2:
version "1.14.1" version "1.14.2"
resolved "https://registry.yarnpkg.com/keycloak-admin/-/keycloak-admin-1.14.1.tgz#d30507b1b89270e42dc2e1ab73842afe3df5c0af" resolved "https://registry.yarnpkg.com/keycloak-admin/-/keycloak-admin-1.14.2.tgz#5b983a10bcc01573c79d4f3d6eefe74bd35c8d3f"
integrity sha512-duQYY+I8iSeSOYtsJnyfQ9LUuKeY5oZCp2rkfH4tJ71VYuk0bon4liN2OBGmLO8PBsZ2TXW95rSydZumysuP/g== integrity sha512-eO0jLEVQJ+yk2Xw6B73dDQWhHwR5CjGsdx3zu1csJTTehCy0ftLJVX/BFnlGmQnF1sVYKpXomoCbUtesYYXntQ==
dependencies: dependencies:
axios "^0.21.0" axios "^0.21.0"
camelize "^1.0.0" camelize "^1.0.0"