show searchbar while the index is unhealthy

This commit is contained in:
Lone Iversen
2024-05-08 11:26:15 +02:00
parent fe3f700b7d
commit 3775a63ffa

View File

@@ -121,7 +121,8 @@ export class UmbDashboardExamineIndexElement extends UmbLitElement {
}
private renderIndexSearch() {
if (!this._indexData || this._indexData.healthStatus.status !== HealthStatusModel.HEALTHY) return nothing;
// Do we want to show the search while rebuilding?
if (!this._indexData || this._indexData.healthStatus.status === HealthStatusModel.REBUILDING) return nothing;
return html`<umb-dashboard-examine-searcher .searcherName="${this.indexName}"></umb-dashboard-examine-searcher>`;
}