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) {
|
if (!this.provider) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
return html`<ak-tabs>
|
return html` ${this.provider?.assignedApplicationName
|
||||||
${this.provider?.assignedApplicationName
|
|
||||||
? html``
|
? html``
|
||||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||||
${t`Warning: Provider is not used by an Application.`}
|
${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.`}
|
${t`Warning: Provider is not used by any Outpost.`}
|
||||||
</div>`
|
</div>`
|
||||||
: html``}
|
: html``}
|
||||||
|
<ak-tabs>
|
||||||
<section
|
<section
|
||||||
slot="page-overview"
|
slot="page-overview"
|
||||||
data-tab-title="${t`Overview`}"
|
data-tab-title="${t`Overview`}"
|
||||||
|
|
|
@ -85,12 +85,11 @@ export class OAuth2ProviderViewPage extends LitElement {
|
||||||
if (!this.provider) {
|
if (!this.provider) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
return html`<ak-tabs>
|
return html` ${this.provider?.assignedApplicationName
|
||||||
${this.provider?.assignedApplicationName
|
|
||||||
? html``
|
? html``
|
||||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||||
${t`Warning: Provider is not used by an Application.`}
|
${t`Warning: Provider is not used by an Application.`}
|
||||||
</div>`}
|
</div>`}<ak-tabs>
|
||||||
<section
|
<section
|
||||||
slot="page-overview"
|
slot="page-overview"
|
||||||
data-tab-title="${t`Overview`}"
|
data-tab-title="${t`Overview`}"
|
||||||
|
@ -135,7 +134,9 @@ export class OAuth2ProviderViewPage extends LitElement {
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="pf-c-description-list__description">
|
<dd class="pf-c-description-list__description">
|
||||||
<div class="pf-c-description-list__text">
|
<div class="pf-c-description-list__text">
|
||||||
${convertToTitle(this.provider.clientType || "")}
|
${convertToTitle(
|
||||||
|
this.provider.clientType || "",
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,8 +73,7 @@ export class ProxyProviderViewPage extends LitElement {
|
||||||
if (!this.provider) {
|
if (!this.provider) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
return html` <ak-tabs>
|
return html` ${this.provider?.assignedApplicationName
|
||||||
${this.provider?.assignedApplicationName
|
|
||||||
? html``
|
? html``
|
||||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||||
${t`Warning: Provider is not used by an Application.`}
|
${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.`}
|
${t`Warning: Provider is not used by any Outpost.`}
|
||||||
</div>`
|
</div>`
|
||||||
: html``}
|
: html``}
|
||||||
|
<ak-tabs>
|
||||||
<section
|
<section
|
||||||
slot="page-overview"
|
slot="page-overview"
|
||||||
data-tab-title="${t`Overview`}"
|
data-tab-title="${t`Overview`}"
|
||||||
|
|
|
@ -79,12 +79,11 @@ export class SAMLProviderViewPage extends LitElement {
|
||||||
if (!this.provider) {
|
if (!this.provider) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
return html`<ak-tabs>
|
return html` ${this.provider?.assignedApplicationName
|
||||||
${this.provider?.assignedApplicationName
|
|
||||||
? html``
|
? html``
|
||||||
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
: html`<div slot="header" class="pf-c-banner pf-m-warning">
|
||||||
${t`Warning: Provider is not used by an Application.`}
|
${t`Warning: Provider is not used by an Application.`}
|
||||||
</div>`}
|
</div>`}<ak-tabs>
|
||||||
<section
|
<section
|
||||||
slot="page-overview"
|
slot="page-overview"
|
||||||
data-tab-title="${t`Overview`}"
|
data-tab-title="${t`Overview`}"
|
||||||
|
|
Reference in New Issue