web: fix source selection and outpost integration health (#12530)
* fix source selector Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix service connection health not updating fully Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix logo alt not translated Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -74,7 +74,7 @@ export class AboutModal extends WithLicenseSummary(WithBrandConfig(ModalButton))
|
|||||||
<img
|
<img
|
||||||
class="pf-c-about-modal-box__brand-image"
|
class="pf-c-about-modal-box__brand-image"
|
||||||
src=${this.brand?.brandingFavicon ?? DefaultBrand.brandingFavicon}
|
src=${this.brand?.brandingFavicon ?? DefaultBrand.brandingFavicon}
|
||||||
alt="authentik Logo"
|
alt="${msg("authentik Logo")}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-c-about-modal-box__close">
|
<div class="pf-c-about-modal-box__close">
|
||||||
|
@ -46,7 +46,7 @@ export class OutpostServiceConnectionListPage extends TablePage<ServiceConnectio
|
|||||||
const connections = await new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllList(
|
const connections = await new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllList(
|
||||||
await this.defaultEndpointConfig(),
|
await this.defaultEndpointConfig(),
|
||||||
);
|
);
|
||||||
Promise.all(
|
await Promise.all(
|
||||||
connections.results.map((connection) => {
|
connections.results.map((connection) => {
|
||||||
return new OutpostsApi(DEFAULT_CONFIG)
|
return new OutpostsApi(DEFAULT_CONFIG)
|
||||||
.outpostsServiceConnectionsAllStateRetrieve({
|
.outpostsServiceConnectionsAllStateRetrieve({
|
||||||
|
@ -4,7 +4,7 @@ import { DualSelectPair } from "@goauthentik/elements/ak-dual-select/types";
|
|||||||
import { OAuthSource, SourcesApi } from "@goauthentik/api";
|
import { OAuthSource, SourcesApi } from "@goauthentik/api";
|
||||||
|
|
||||||
const sourceToSelect = (source: OAuthSource) => [
|
const sourceToSelect = (source: OAuthSource) => [
|
||||||
source.pk,
|
source.slug,
|
||||||
`${source.name} (${source.slug})`,
|
`${source.name} (${source.slug})`,
|
||||||
source.name,
|
source.name,
|
||||||
source,
|
source,
|
||||||
|
@ -291,7 +291,7 @@ export function renderForm(
|
|||||||
|
|
||||||
${showHttpBasic ? renderHttpBasic(provider) : nothing}
|
${showHttpBasic ? renderHttpBasic(provider) : nothing}
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${msg("Trusted OIDC Sources")}
|
label=${msg("Federated OIDC Sources")}
|
||||||
name="jwtFederationSources"
|
name="jwtFederationSources"
|
||||||
>
|
>
|
||||||
<ak-dual-select-dynamic-selected
|
<ak-dual-select-dynamic-selected
|
||||||
|
@ -3,6 +3,7 @@ import { AKElement } from "@goauthentik/elements/Base";
|
|||||||
import { WithBrandConfig } from "@goauthentik/elements/Interface/brandProvider";
|
import { WithBrandConfig } from "@goauthentik/elements/Interface/brandProvider";
|
||||||
import { themeImage } from "@goauthentik/elements/utils/images";
|
import { themeImage } from "@goauthentik/elements/utils/images";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
import { CSSResult, TemplateResult, css, html } from "lit";
|
import { CSSResult, TemplateResult, css, html } from "lit";
|
||||||
import { customElement } from "lit/decorators.js";
|
import { customElement } from "lit/decorators.js";
|
||||||
|
|
||||||
@ -89,7 +90,7 @@ export class SidebarBrand extends WithBrandConfig(AKElement) {
|
|||||||
<div class="pf-c-brand ak-brand">
|
<div class="pf-c-brand ak-brand">
|
||||||
<img
|
<img
|
||||||
src=${themeImage(this.brand?.brandingLogo ?? DefaultBrand.brandingLogo)}
|
src=${themeImage(this.brand?.brandingLogo ?? DefaultBrand.brandingLogo)}
|
||||||
alt="authentik Logo"
|
alt="${msg("authentik Logo")}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -515,7 +515,7 @@ export class FlowExecutor extends Interface implements StageHost {
|
|||||||
DefaultBrand.brandingLogo,
|
DefaultBrand.brandingLogo,
|
||||||
),
|
),
|
||||||
)}"
|
)}"
|
||||||
alt="authentik Logo"
|
alt="${msg("authentik Logo")}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
${until(this.renderChallenge())}
|
${until(this.renderChallenge())}
|
||||||
|
@ -8,6 +8,7 @@ import { DefaultBrand } from "@goauthentik/elements/sidebar/SidebarBrand";
|
|||||||
import { themeImage } from "@goauthentik/elements/utils/images";
|
import { themeImage } from "@goauthentik/elements/utils/images";
|
||||||
import "rapidoc";
|
import "rapidoc";
|
||||||
|
|
||||||
|
import { msg } from "@lit/localize";
|
||||||
import { CSSResult, TemplateResult, css, html } from "lit";
|
import { CSSResult, TemplateResult, css, html } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators.js";
|
import { customElement, property, state } from "lit/decorators.js";
|
||||||
import { ifDefined } from "lit/directives/if-defined.js";
|
import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
@ -102,7 +103,7 @@ export class APIBrowser extends Interface {
|
|||||||
>
|
>
|
||||||
<div slot="nav-logo">
|
<div slot="nav-logo">
|
||||||
<img
|
<img
|
||||||
alt="authentik Logo"
|
alt="${msg("authentik Logo")}"
|
||||||
class="logo"
|
class="logo"
|
||||||
src="${themeImage(
|
src="${themeImage(
|
||||||
first(this.brand?.brandingLogo, DefaultBrand.brandingLogo),
|
first(this.brand?.brandingLogo, DefaultBrand.brandingLogo),
|
||||||
|
Reference in New Issue
Block a user