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: [],
|
transformations: [],
|
||||||
persistenceConfigs: []
|
persistenceConfigs: []
|
||||||
},
|
},
|
||||||
pinnedObjects: {
|
pinnedObjects: this.$f7.data.pinnedObjects || {
|
||||||
items: [],
|
items: [],
|
||||||
things: [],
|
things: [],
|
||||||
rules: [],
|
rules: [],
|
||||||
|
@ -490,6 +490,7 @@ export default {
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
this.stopEventSource()
|
this.stopEventSource()
|
||||||
if (this.addThingAutocomplete) this.addThingAutocomplete.destroy()
|
if (this.addThingAutocomplete) this.addThingAutocomplete.destroy()
|
||||||
|
this.$f7.data.pinnedObjects = this.pinnedObjects
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addItemsFromModel (value) {
|
addItemsFromModel (value) {
|
||||||
|
|
Loading…
Reference in New Issue