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:
		| @ -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, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Teffen Ellis
					Teffen Ellis