Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model page: Remember checkbox settings #2355

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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