Update error.ftl
This commit is contained in:
parent
c2fd92f516
commit
695cdd5c63
@ -211,6 +211,7 @@ export declare namespace KcContext {
|
||||
baseUrl?: string;
|
||||
};
|
||||
message: NonNullable<Common["message"]>;
|
||||
skipLink?: boolean;
|
||||
};
|
||||
|
||||
export type LoginResetPassword = Common & {
|
||||
|
@ -5,7 +5,7 @@ import type { I18n } from "../i18n";
|
||||
export default function Error(props: PageProps<Extract<KcContext, { pageId: "error.ftl" }>, I18n>) {
|
||||
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
||||
|
||||
const { message, client } = kcContext;
|
||||
const { message, client, skipLink } = kcContext;
|
||||
|
||||
const { msg } = i18n;
|
||||
|
||||
@ -13,7 +13,7 @@ export default function Error(props: PageProps<Extract<KcContext, { pageId: "err
|
||||
<Template {...{ kcContext, i18n, doUseDefaultCss, classes }} displayMessage={false} headerNode={msg("errorTitle")}>
|
||||
<div id="kc-error-message">
|
||||
<p className="instruction">{message.summary}</p>
|
||||
{client !== undefined && client.baseUrl !== undefined && (
|
||||
{!skipLink && client !== undefined && client.baseUrl !== undefined && (
|
||||
<p>
|
||||
<a id="backToApplication" href={client.baseUrl}>
|
||||
{msg("backToApplication")}
|
||||
|
Loading…
x
Reference in New Issue
Block a user