web: Clean up browser-only module imports that crash WebDriverIO. (#14330)

* web: Clean up browser-only module imports that crash WebDriverIO.

* web: Clarify slug format output.
This commit is contained in:
Teffen Ellis
2025-05-03 02:04:05 +02:00
committed by GitHub
parent 70d60c7ab2
commit f70635c295
65 changed files with 278 additions and 372 deletions

View File

@@ -1,6 +1,5 @@
import "@goauthentik/admin/common/ak-crypto-certificate-search";
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { first } from "@goauthentik/common/utils";
import "@goauthentik/elements/forms/HorizontalFormElement";
import { ModelForm } from "@goauthentik/elements/forms/ModelForm";
import "@goauthentik/elements/forms/SearchSelect";
@@ -53,7 +52,7 @@ export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnecti
<input
class="pf-c-switch__input"
type="checkbox"
?checked=${first(this.instance?.local, false)}
?checked=${this.instance?.local ?? false}
/>
<span class="pf-c-switch__toggle">
<span class="pf-c-switch__toggle-icon">