- ${this.#renderPolingTimeSelector()}
+
-
${this.#renderSearchInput()}
-
- Total items: ${this._logsTotal}
-
-
- ${this._logs.length > 0
- ? html` ${this._logs.map(
- (log) => html``
- )}`
- : html`
- Sorry, we cannot find what you are looking for.
- `}
-
- ${this._renderPagination()}
-
+
+
+
+
`;
}
-
- _onPageChange(event: Event): void {
- const current = (event.target as UUIPaginationElement).current;
- this.#logViewerContext?.setCurrentPage(current);
- this.#logViewerContext?.getLogs();
- this._logsScrollContainer.scrollTop = 0;
- }
-
- private _renderPagination() {
- if (!this._logsTotal) return '';
-
- const totalPages = Math.ceil(this._logsTotal / 100);
-
- if (totalPages <= 1) return '';
-
- return html``;
- }
}
export default UmbLogViewerSearchViewElement;