web/admin: also show note for SAML provider

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-05 01:21:10 +01:00
parent 894f704c27
commit abcf515a69
4 changed files with 10 additions and 0 deletions

View File

@ -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."

View File

@ -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 ""

View File

@ -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 ""

View File

@ -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`<ak-tabs>
${this.provider?.assignedApplicationName
? html``
: html`<div slot="header" class="pf-c-banner pf-m-warning">
${t`Warning: Provider is not used by an Application.`}
</div>`}
<section
slot="page-overview"
data-tab-title="${t`Overview`}"