add link and query to number of error

This commit is contained in:
Julia Gru
2023-04-12 12:27:49 +02:00
parent 0ac4264c8c
commit 5bc57c1e77
2 changed files with 8 additions and 2 deletions

View File

@@ -110,10 +110,10 @@ export class UmbLogViewerWorkspaceContext {
}
onChangeState = () => {
this.reset();
const searchQuery = query();
if (searchQuery.lq) {
const sanitizedQuery = decodeURIComponent(searchQuery.lq);
this.setFilterExpression(sanitizedQuery);

View File

@@ -128,7 +128,13 @@ export class UmbLogViewerOverviewViewElement extends UmbLitElement {
</uui-box>
<uui-box id="errors" headline="Number of Errors">
<h1 id="error-count">${this._errorCount}</h1>
<uui-button
label="Show error logs"
href=${`section/settings/workspace/logviewer/search/?lq=${encodeURIComponent(
`@Level='Fatal' or @Level='Error' or Has(@Exception)`
)}`}>
<h1 id="error-count">${this._errorCount}</h1></uui-button
>
</uui-box>
<uui-box id="level" headline="Log level">