Skip to content

Commit

Permalink
Model page: Remember checkbox settings (#2355)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Feb 15, 2024
1 parent e3fae0b commit 72f5637
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bundles/org.openhab.ui/web/src/pages/settings/model/model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,13 @@ export default {
LinkDetails
},
data () {
if (!this.$f7.data.model) this.$f7.data.model = {}
return {
ready: false,
loading: false,
includeNonSemantic: false,
includeItemName: false,
includeItemTags: false,
includeNonSemantic: this.$f7.data.model.includeNonSemantic || false,
includeItemName: this.$f7.data.model.includeItemName || false,
includeItemTags: this.$f7.data.model.includeItemTags || false,
expanded: false,
items: [],
links: [],
Expand Down Expand Up @@ -477,14 +478,17 @@ export default {
this.rootGroups = []
this.rootItems = []
this.includeNonSemantic = !this.includeNonSemantic
this.$f7.data.model.includeNonSemantic = this.includeNonSemantic
this.load()
},
toggleItemName () {
this.includeItemName = !this.includeItemName
this.$f7.data.model.includeItemName = this.includeItemName
this.load()
},
toggleItemTags () {
this.includeItemTags = !this.includeItemTags
this.$f7.data.model.includeItemTags = this.includeItemTags
this.load()
},
toggleExpanded () {
Expand Down

0 comments on commit 72f5637

Please sign in to comment.