From 6f167a51fe101c2164be01e1de7ba3bfb24ac663 Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Sat, 10 Feb 2024 08:10:49 +1000 Subject: [PATCH] Model picker popup: Add "Show name" and "Show tags" options (#2320) This makes it easier to find items e.g. when building rules Signed-off-by: Jimmy Tanagra --- .../src/components/model/model-picker-popup.vue | 15 +++++++++++++++ .../web/src/components/model/model-treeview.vue | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue b/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue index 5e6b45887f..16233cb420 100644 --- a/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue +++ b/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue @@ -34,12 +34,17 @@
+ + + +
@@ -79,6 +84,8 @@ export default { loading: false, initSearchbar: false, includeNonSemantic: false, + includeItemName: false, + includeItemTags: false, expanded: false, items: [], links: [], @@ -287,6 +294,14 @@ export default { this.includeNonSemantic = !this.includeNonSemantic this.load() }, + toggleItemName () { + this.includeItemName = !this.includeItemName + this.load() + }, + toggleItemTags () { + this.includeItemTags = !this.includeItemTags + this.load() + }, toggleExpanded () { this.expanded = !this.expanded diff --git a/bundles/org.openhab.ui/web/src/components/model/model-treeview.vue b/bundles/org.openhab.ui/web/src/components/model/model-treeview.vue index 8ff3da7cda..61b28f3a97 100644 --- a/bundles/org.openhab.ui/web/src/components/model/model-treeview.vue +++ b/bundles/org.openhab.ui/web/src/components/model/model-treeview.vue @@ -2,6 +2,7 @@ @@ -21,7 +22,7 @@