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 <jcode@tanagra.id.au>pull/3170/head
parent
67409fe3e4
commit
7c0e759b04
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue