From 7187227d3463a87c0d314df38f0cfdffb51a3cae Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Wed, 15 Nov 2023 20:27:59 +1100 Subject: [PATCH] Fix filter per extension in dev ui Signed-off-by: Phillip Kruger --- .../resources/dev-ui/qwc/qwc-configuration.js | 56 ++++++++++--------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js index 84670fc933c50..0cb7923ad5746 100644 --- a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js +++ b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js @@ -35,7 +35,7 @@ export class QwcConfiguration extends observeState(LitElement) { flex-direction: column; overflow: hidden; } - + .confTopBar { display: flex; justify-content: space-between; @@ -50,7 +50,7 @@ export class QwcConfiguration extends observeState(LitElement) { vertical-align: top; width: 100%; } - + .description { padding: 1em; } @@ -70,7 +70,7 @@ export class QwcConfiguration extends observeState(LitElement) { cursor: pointer; color: var(--lumo-primary-color); } - + .lock-icon { color: var(--lumo-contrast-60pct); font-size: small; @@ -100,6 +100,15 @@ export class QwcConfiguration extends observeState(LitElement) { constructor() { super(); + this._detailsOpenedItem = []; + this._busy = null; + + this._showOnlyOwnProperties = false; + this._searchTerm = ''; + } + + connectedCallback() { + super.connectedCallback(); this._filteredValue = this.routerController.getQueryParameter("filter"); if(this._filteredValue){ @@ -109,15 +118,10 @@ export class QwcConfiguration extends observeState(LitElement) { this._allConfiguration = e.result; this._visibleConfiguration = e.result; this._filtered = e.result; - }) + }); this.jsonRpc.getAllValues().then(e => { this._values = e.result; }); - this._detailsOpenedItem = []; - this._busy = null; - - this._showOnlyOwnProperties = false; - this._searchTerm = ''; } render() { @@ -219,7 +223,7 @@ export class QwcConfiguration extends observeState(LitElement) { @@ -306,11 +310,11 @@ export class QwcConfiguration extends observeState(LitElement) { `; } else if (prop.typeName === "java.lang.Float" || prop.typeName === "java.lang.Double") { return html` - - + `; } else { return html` - - @@ -374,7 +378,7 @@ export class QwcConfiguration extends observeState(LitElement) { } } res = res.toUpperCase(); - + let def = "Default value: None"; if (prop.defaultValue) { def = "Default value: " + prop.defaultValue;