From c0c4e4204f3fbe3d597dd7638697103ca1c1918e Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:07:12 +0100 Subject: [PATCH] remove unused code --- .../views/health-check-group.element.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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 fd2a2b8453..07f0b8a453 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 @@ -3,18 +3,15 @@ import type { UmbHealthCheckDashboardContext } from '../health-check-dashboard.c import { UMB_HEALTHCHECK_DASHBOARD_CONTEXT } from '../health-check-dashboard.context.js'; import type { UUIButtonState } from '@umbraco-cms/backoffice/external/uui'; import { css, html, nothing, customElement, property, state, unsafeHTML } from '@umbraco-cms/backoffice/external/lit'; - import type { HealthCheckActionRequestModel, HealthCheckGroupPresentationModel, - HealthCheckModel, HealthCheckWithResultPresentationModel, } from '@umbraco-cms/backoffice/external/backend-api'; -import { HealthCheckResource, StatusResultTypeModel } from '@umbraco-cms/backoffice/external/backend-api'; +import { StatusResultTypeModel } from '@umbraco-cms/backoffice/external/backend-api'; import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'; -import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources'; -import './health-check-action.element.js'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; +import './health-check-action.element.js'; @customElement('umb-dashboard-health-check-group') export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { @@ -29,9 +26,6 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { private _healthCheckContext?: UmbHealthCheckDashboardContext; - @state() - private _checks?: HealthCheckModel[]; - @state() private _idResults?: HealthCheckWithResultPresentationModel[]; @@ -48,7 +42,6 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { this._api.getGroupChecks(this.groupName); this.observe(this._api.checks, (group) => { - this._checks = group?.checks; this._group = group; }); @@ -65,10 +58,6 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { this._buttonState = 'success'; } - private _onActionClick(action: HealthCheckActionRequestModel) { - return tryExecuteAndNotify(this, HealthCheckResource.postHealthCheckExecuteAction({ requestBody: action })); - } - render() { return html` ← Back to overview ${this._group ? this.#renderGroup() : nothing}`;