From abcf515a699a1cfb719718b1cc7c91d0b48cd639 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 5 Nov 2021 01:21:10 +0100 Subject: [PATCH] web/admin: also show note for SAML provider Signed-off-by: Jens Langhammer --- web/src/locales/en.po | 1 + web/src/locales/fr_FR.po | 1 + web/src/locales/pseudo-LOCALE.po | 1 + web/src/pages/providers/saml/SAMLProviderViewPage.ts | 7 +++++++ 4 files changed, 10 insertions(+) diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 4102cac68c..a86c256e75 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -5486,6 +5486,7 @@ msgstr "Warning: Policy is not assigned." #: src/pages/providers/ldap/LDAPProviderViewPage.ts #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts #: src/pages/providers/proxy/ProxyProviderViewPage.ts +#: src/pages/providers/saml/SAMLProviderViewPage.ts msgid "Warning: Provider is not used by an Application." msgstr "Warning: Provider is not used by an Application." diff --git a/web/src/locales/fr_FR.po b/web/src/locales/fr_FR.po index 4a28a3349f..4e3cd71f4c 100644 --- a/web/src/locales/fr_FR.po +++ b/web/src/locales/fr_FR.po @@ -5425,6 +5425,7 @@ msgstr "Avertissement : la politique n'est pas assignée." #: src/pages/providers/ldap/LDAPProviderViewPage.ts #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts #: src/pages/providers/proxy/ProxyProviderViewPage.ts +#: src/pages/providers/saml/SAMLProviderViewPage.ts msgid "Warning: Provider is not used by an Application." msgstr "" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index 1f2c7c93e6..3b5bd9682f 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -5471,6 +5471,7 @@ msgstr "" #: src/pages/providers/ldap/LDAPProviderViewPage.ts #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts #: src/pages/providers/proxy/ProxyProviderViewPage.ts +#: src/pages/providers/saml/SAMLProviderViewPage.ts msgid "Warning: Provider is not used by an Application." msgstr "" diff --git a/web/src/pages/providers/saml/SAMLProviderViewPage.ts b/web/src/pages/providers/saml/SAMLProviderViewPage.ts index c8fdfe1c48..7a7c3a5351 100644 --- a/web/src/pages/providers/saml/SAMLProviderViewPage.ts +++ b/web/src/pages/providers/saml/SAMLProviderViewPage.ts @@ -6,6 +6,7 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { until } from "lit/directives/until.js"; import AKGlobal from "../../../authentik.css"; +import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; import PFCard from "@patternfly/patternfly/components/Card/card.css"; import PFContent from "@patternfly/patternfly/components/Content/content.css"; @@ -61,6 +62,7 @@ export class SAMLProviderViewPage extends LitElement { PFCard, PFDescriptionList, PFSizing, + PFBanner, AKGlobal, ]; } @@ -78,6 +80,11 @@ export class SAMLProviderViewPage extends LitElement { return html``; } return html` + ${this.provider?.assignedApplicationName + ? html`` + : html`
+ ${t`Warning: Provider is not used by an Application.`} +
`}