From 7c0e759b047fff24398eac57d6d9940266f8e028 Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Tue, 29 Apr 2025 03:48:40 +1000 Subject: [PATCH] Developer Sidebar: Make pinned objects persistent (#3164) Make pinned objects persistent within the browser session, so they don't disappear when closing / reopening the developer sidebar, or when switching to Help tab and back. Signed-off-by: Jimmy Tanagra --- .../web/src/components/developer/developer-sidebar.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/developer/developer-sidebar.vue b/bundles/org.openhab.ui/web/src/components/developer/developer-sidebar.vue index c58d760eb..2551e1da6 100644 --- a/bundles/org.openhab.ui/web/src/components/developer/developer-sidebar.vue +++ b/bundles/org.openhab.ui/web/src/components/developer/developer-sidebar.vue @@ -445,7 +445,7 @@ export default { transformations: [], persistenceConfigs: [] }, - pinnedObjects: { + pinnedObjects: this.$f7.data.pinnedObjects || { items: [], things: [], rules: [], @@ -490,6 +490,7 @@ export default { beforeDestroy () { this.stopEventSource() if (this.addThingAutocomplete) this.addThingAutocomplete.destroy() + this.$f7.data.pinnedObjects = this.pinnedObjects }, methods: { addItemsFromModel (value) {