web: Controller refinements, error handling (#14700)

* web: Partial fix for issue where config is not consistently available.

* web: Fix issues surrounding controller readiness.

* web: Catch abort errors when originating when wrapped by OpenAPI or Sentry.

* web: Fix color on dark mode.

---------

Co-authored-by: Simonyi Gergő <gergo@goauthentik.io>
This commit is contained in:
Teffen Ellis
2025-05-28 13:08:09 +02:00
committed by GitHub
parent 134eb126b6
commit fa66195619
16 changed files with 122 additions and 86 deletions

View File

@ -37,6 +37,9 @@ export class ModalForm extends ModalButton {
if (this.closeAfterSuccessfulSubmit) {
this.open = false;
form?.resetForm();
// TODO: We may be fetching too frequently.
// Repeat dispatching will prematurely abort refresh listeners and cause several fetches and re-renders.
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {
bubbles: true,