diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts index 36a1b3f7b45d..2801a1336529 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts @@ -20,9 +20,9 @@ export class UmbHealthCheckDashboardContext { this.host = host; } - checkAll() { + async checkAll() { for (const [label, api] of this.apis.entries()) { - api?.checkGroup?.(label); + await api?.checkGroup?.(label); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts index 084d41a1a9bb..50febc293377 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts @@ -54,7 +54,7 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { private async _buttonHandler() { this._buttonState = 'waiting'; - this._api?.checkGroup(this.groupName); + await this._api?.checkGroup(this.groupName); this._buttonState = 'success'; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-overview.element.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-overview.element.ts index 7377edfd7b5c..25f69d360617 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-overview.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-overview.element.ts @@ -23,7 +23,9 @@ export class UmbDashboardHealthCheckOverviewElement extends UmbLitElement { } private async _onHealthCheckHandler() { - this._healthCheckDashboardContext?.checkAll(); + this._buttonState = 'waiting'; + await this._healthCheckDashboardContext?.checkAll(); + this._buttonState = 'success'; } override render() { @@ -41,7 +43,13 @@ export class UmbDashboardHealthCheckOverviewElement extends UmbLitElement {