From 26a49d60c6a6213055927e367790afedf506f889 Mon Sep 17 00:00:00 2001 From: mfrances Date: Thu, 1 Apr 2021 10:11:04 -0400 Subject: [PATCH] fix empty mapper string ref --- src/client-scopes/add/MapperDialog.tsx | 4 ++-- src/client-scopes/details/MapperList.tsx | 6 +++--- src/client-scopes/messages.json | 3 --- src/common-messages.json | 6 +++++- src/user-federation/ldap/mappers/LdapMapperList.tsx | 12 ++++++------ 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/client-scopes/add/MapperDialog.tsx b/src/client-scopes/add/MapperDialog.tsx index 1ff5ffba87..401455b218 100644 --- a/src/client-scopes/add/MapperDialog.tsx +++ b/src/client-scopes/add/MapperDialog.tsx @@ -157,8 +157,8 @@ export const AddMapperDialog = (props: AddMapperDialogProps) => { )} {isBuiltIn && rows.length === 0 && ( )} diff --git a/src/client-scopes/details/MapperList.tsx b/src/client-scopes/details/MapperList.tsx index ba5344d498..73f57169ec 100644 --- a/src/client-scopes/details/MapperList.tsx +++ b/src/client-scopes/details/MapperList.tsx @@ -192,9 +192,9 @@ export const MapperList = ({ clientScope, refresh }: MapperListProps) => { ]} emptyState={ toggleAddMapperDialog(true)} secondaryActions={[ { diff --git a/src/client-scopes/messages.json b/src/client-scopes/messages.json index 7ac44d2622..fe2517dfcb 100644 --- a/src/client-scopes/messages.json +++ b/src/client-scopes/messages.json @@ -35,10 +35,7 @@ "mapperCreateError": "Could not create mapping: {{error}}", "fromPredefinedMapper": "From predefined mappers", "byConfiguration": "By configuration", - "emptyMappers": "No mappers", - "emptyMappersInstructions": "If you want to add mappers, please click the button below to add some predefined mappers or to configure a new mapper.", "emptyBuiltInMappersInstructions": "All built in mappers were added to this client", - "emptyPrimaryAction": "Add predefined mapper", "emptySecondaryAction": "Configure a new mapper", "displayOnConsentScreen": "Display on consent screen", "consentScreenText": "Consent screen text", diff --git a/src/common-messages.json b/src/common-messages.json index 66a4c28397..9d855887ae 100644 --- a/src/common-messages.json +++ b/src/common-messages.json @@ -110,6 +110,10 @@ "mappingCreatedSuccess": "Mapping successfully created", "mappingCreatedError": "Could not create mapping: '{{error}}'", "deleteMappingTitle": "Delete mapping?", - "deleteMappingConfirm": "Are you sure you want to delete this mapping?" + "deleteMappingConfirm": "Are you sure you want to delete this mapping?", + + "emptyMappers": "No mappers", + "emptyMappersInstructions": "If you want to add mappers, please click the button below to add some predefined mappers or to configure a new mapper.", + "emptyPrimaryAction": "Add predefined mapper" } } diff --git a/src/user-federation/ldap/mappers/LdapMapperList.tsx b/src/user-federation/ldap/mappers/LdapMapperList.tsx index d4473005cd..8c8a982107 100644 --- a/src/user-federation/ldap/mappers/LdapMapperList.tsx +++ b/src/user-federation/ldap/mappers/LdapMapperList.tsx @@ -51,9 +51,9 @@ export const LdapMapperList = () => { return ( <> ); @@ -131,9 +131,9 @@ export const LdapMapperList = () => { ]} emptyState={ } />