Skip to content

Commit

Permalink
web: fix source selection and outpost integration health (#12530)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
BeryJu authored Jan 3, 2025
1 parent c7532d3 commit a61a41d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/src/admin/AdminInterface/AboutModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AboutModal extends WithLicenseSummary(WithBrandConfig(ModalButton))
<img
class="pf-c-about-modal-box__brand-image"
src=${this.brand?.brandingFavicon ?? DefaultBrand.brandingFavicon}
alt="authentik Logo"
alt="${msg("authentik Logo")}"
/>
</div>
<div class="pf-c-about-modal-box__close">
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/outposts/ServiceConnectionListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class OutpostServiceConnectionListPage extends TablePage<ServiceConnectio
const connections = await new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllList(
await this.defaultEndpointConfig(),
);
Promise.all(
await Promise.all(
connections.results.map((connection) => {
return new OutpostsApi(DEFAULT_CONFIG)
.outpostsServiceConnectionsAllStateRetrieve({
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/providers/oauth2/OAuth2Sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DualSelectPair } from "@goauthentik/elements/ak-dual-select/types";
import { OAuthSource, SourcesApi } from "@goauthentik/api";

const sourceToSelect = (source: OAuthSource) => [
source.pk,
source.slug,
`${source.name} (${source.slug})`,
source.name,
source,
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/providers/proxy/ProxyProviderFormForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export function renderForm(
${showHttpBasic ? renderHttpBasic(provider) : nothing}
<ak-form-element-horizontal
label=${msg("Trusted OIDC Sources")}
label=${msg("Federated OIDC Sources")}
name="jwtFederationSources"
>
<ak-dual-select-dynamic-selected
Expand Down
3 changes: 2 additions & 1 deletion web/src/elements/sidebar/SidebarBrand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AKElement } from "@goauthentik/elements/Base";
import { WithBrandConfig } from "@goauthentik/elements/Interface/brandProvider";
import { themeImage } from "@goauthentik/elements/utils/images";

import { msg } from "@lit/localize";
import { CSSResult, TemplateResult, css, html } from "lit";
import { customElement } from "lit/decorators.js";

Expand Down Expand Up @@ -89,7 +90,7 @@ export class SidebarBrand extends WithBrandConfig(AKElement) {
<div class="pf-c-brand ak-brand">
<img
src=${themeImage(this.brand?.brandingLogo ?? DefaultBrand.brandingLogo)}
alt="authentik Logo"
alt="${msg("authentik Logo")}"
loading="lazy"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/flow/FlowExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export class FlowExecutor extends Interface implements StageHost {
DefaultBrand.brandingLogo,
),
)}"
alt="authentik Logo"
alt="${msg("authentik Logo")}"
/>
</div>
${until(this.renderChallenge())}
Expand Down
3 changes: 2 additions & 1 deletion web/src/standalone/api-browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { DefaultBrand } from "@goauthentik/elements/sidebar/SidebarBrand";
import { themeImage } from "@goauthentik/elements/utils/images";
import "rapidoc";

import { msg } from "@lit/localize";
import { CSSResult, TemplateResult, css, html } from "lit";
import { customElement, property, state } from "lit/decorators.js";
import { ifDefined } from "lit/directives/if-defined.js";
Expand Down Expand Up @@ -102,7 +103,7 @@ export class APIBrowser extends Interface {
>
<div slot="nav-logo">
<img
alt="authentik Logo"
alt="${msg("authentik Logo")}"
class="logo"
src="${themeImage(
first(this.brand?.brandingLogo, DefaultBrand.brandingLogo),
Expand Down

0 comments on commit a61a41d

Please sign in to comment.