Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevUI: Fixed sorting and icon #306

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public CardPageBuildItem pages() {
.icon("font-awesome-solid:layer-group"));

pageBuildItem.addPage(Page.webComponentPageBuilder()
.icon("font-awesome-solid:play-circle")
.icon("font-awesome-solid:play")
.componentLink("qwc-logging-manager-loggers.js"));

return pageBuildItem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,22 @@ export class QwcLoggingManagerLoggers extends LitElement {
return html`<vaadin-grid .items="${this._loggers}" class="logger-table" theme="no-border">
<vaadin-grid-sort-column auto-width
header="Logger"
${columnBodyRenderer(this._loggerRenderer, [])}
path="name"
resizable>
</vaadin-grid-sort-column>

<vaadin-grid-sort-column auto-width
header="Effective Level"
${columnBodyRenderer(this._effectiveLevelRenderer, [])}
path="effectiveLevel"
resizable>
</vaadin-grid-sort-column>

<vaadin-grid-sort-column auto-width
header="Configured Level"
${columnBodyRenderer(this._configuredLevelRenderer, [])}
path="configuredLevel"
resizable>
</vaadin-grid-sort-column>
</vaadin-grid>`
}

_loggerRenderer(logger) {
return html`<span>${logger.name}</span>`
}

_configuredLevelRenderer(logger) {
return html`<span>${logger.configuredLevel}</span>`
}

_effectiveLevelRenderer(logger) {
return html`<span>${logger.effectiveLevel}</span>`
}
}
customElements.define('qwc-logging-manager-loggers', QwcLoggingManagerLoggers);
Loading