fix: add whitespace before required actions in info page
This commit is contained in:
parent
bc396bc41b
commit
da3e7514f0
@ -31,10 +31,10 @@ export default function Info(props: PageProps<Extract<KcContext, { pageId: "info
|
|||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: kcSanitize(
|
__html: kcSanitize(
|
||||||
(() => {
|
(() => {
|
||||||
let html = message.summary;
|
let html = message.summary?.trim();
|
||||||
|
|
||||||
if (requiredActions) {
|
if (requiredActions) {
|
||||||
html += "<b>";
|
html += " <b>";
|
||||||
|
|
||||||
html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", ");
|
html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", ");
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export const WithRequiredActions: Story = {
|
|||||||
kcContext={{
|
kcContext={{
|
||||||
messageHeader: "Message header",
|
messageHeader: "Message header",
|
||||||
message: {
|
message: {
|
||||||
summary: "Required actions: "
|
summary: "Required actions:"
|
||||||
},
|
},
|
||||||
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL", "CUSTOM_ACTION"],
|
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL", "CUSTOM_ACTION"],
|
||||||
"x-keycloakify": {
|
"x-keycloakify": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user