web/admin: show warnings above tab bar
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d1b9f1e6b8
commit
0a413fe21a
|
@ -76,8 +76,7 @@ export class LDAPProviderViewPage extends LitElement {
|
|||
if (!this.provider) {
|
||||
return html``;
|
||||
}
|
||||
return html`<ak-tabs>
|
||||
${this.provider?.assignedApplicationName
|
||||
return html` ${this.provider?.assignedApplicationName
|
||||
? html``
|
||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||
${t`Warning: Provider is not used by an Application.`}
|
||||
|
@ -87,6 +86,7 @@ export class LDAPProviderViewPage extends LitElement {
|
|||
${t`Warning: Provider is not used by any Outpost.`}
|
||||
</div>`
|
||||
: html``}
|
||||
<ak-tabs>
|
||||
<section
|
||||
slot="page-overview"
|
||||
data-tab-title="${t`Overview`}"
|
||||
|
|
|
@ -85,12 +85,11 @@ export class OAuth2ProviderViewPage extends LitElement {
|
|||
if (!this.provider) {
|
||||
return html``;
|
||||
}
|
||||
return html`<ak-tabs>
|
||||
${this.provider?.assignedApplicationName
|
||||
return html` ${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>`}
|
||||
</div>`}<ak-tabs>
|
||||
<section
|
||||
slot="page-overview"
|
||||
data-tab-title="${t`Overview`}"
|
||||
|
@ -135,7 +134,9 @@ export class OAuth2ProviderViewPage extends LitElement {
|
|||
</dt>
|
||||
<dd class="pf-c-description-list__description">
|
||||
<div class="pf-c-description-list__text">
|
||||
${convertToTitle(this.provider.clientType || "")}
|
||||
${convertToTitle(
|
||||
this.provider.clientType || "",
|
||||
)}
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
|
|
|
@ -73,8 +73,7 @@ export class ProxyProviderViewPage extends LitElement {
|
|||
if (!this.provider) {
|
||||
return html``;
|
||||
}
|
||||
return html` <ak-tabs>
|
||||
${this.provider?.assignedApplicationName
|
||||
return html` ${this.provider?.assignedApplicationName
|
||||
? html``
|
||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||
${t`Warning: Provider is not used by an Application.`}
|
||||
|
@ -84,6 +83,7 @@ export class ProxyProviderViewPage extends LitElement {
|
|||
${t`Warning: Provider is not used by any Outpost.`}
|
||||
</div>`
|
||||
: html``}
|
||||
<ak-tabs>
|
||||
<section
|
||||
slot="page-overview"
|
||||
data-tab-title="${t`Overview`}"
|
||||
|
|
|
@ -79,12 +79,11 @@ export class SAMLProviderViewPage extends LitElement {
|
|||
if (!this.provider) {
|
||||
return html``;
|
||||
}
|
||||
return html`<ak-tabs>
|
||||
${this.provider?.assignedApplicationName
|
||||
return html` ${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>`}
|
||||
</div>`}<ak-tabs>
|
||||
<section
|
||||
slot="page-overview"
|
||||
data-tab-title="${t`Overview`}"
|
||||
|
|
Reference in New Issue