remove unused code
This commit is contained in:
@@ -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` <a href="/section/settings/dashboard/health-check"> ← Back to overview </a>
|
||||
${this._group ? this.#renderGroup() : nothing}`;
|
||||
|
||||
Reference in New Issue
Block a user