add link and query to number of error
This commit is contained in:
@@ -110,10 +110,10 @@ export class UmbLogViewerWorkspaceContext {
|
||||
}
|
||||
|
||||
onChangeState = () => {
|
||||
|
||||
this.reset();
|
||||
|
||||
const searchQuery = query();
|
||||
|
||||
if (searchQuery.lq) {
|
||||
const sanitizedQuery = decodeURIComponent(searchQuery.lq);
|
||||
this.setFilterExpression(sanitizedQuery);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user