Skip to content

Commit

Permalink
Revert changes to constants handling
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 committed Feb 22, 2024
1 parent 2859f6d commit 2bc3569
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions bundles/org.openhab.ui/web/src/components/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ export default {
}
return {
AddonIcons: AddonIcons,
AddonTitles: AddonTitles,
init: false,
ready: false,
Expand Down Expand Up @@ -639,7 +636,10 @@ export default {
}
},
created () {
// special treatment for this option because it's needed to configure the app initialization
this.AddonIcons = AddonIcons
this.AddonTitles = AddonTitles
// special treatment for this option because it's needed to configure the app initialization

Check failure on line 642 in bundles/org.openhab.ui/web/src/components/app.vue

View workflow job for this annotation

GitHub Actions / checks

Expected indentation of 4 spaces but found 6
this.themeOptions.pageTransitionAnimation = localStorage.getItem('openhab.ui:theme.pagetransition') || 'default'
// tell the app to go fullscreen (if the OHApp is supported)
if (window.OHApp && typeof window.OHApp.goFullscreen === 'function') {
Expand Down
11 changes: 6 additions & 5 deletions bundles/org.openhab.ui/web/src/pages/addons/addons-store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ export default {
},
data () {
return {
AddonTitles: AddonTitles,
AddonIcons: AddonIcons,
SuggestionLabels: AddonSuggestionLabels,
TabNames: Object.assign({ main: 'Add-on Store' }, AddonTitles),
currentTab: 'main',
services: null,
suggestions: [],
Expand Down Expand Up @@ -351,6 +346,12 @@ export default {
this.$refs.storeSearchbar.f7Searchbar.$inputEl.focus()
})
}
},
created () {
this.AddonTitles = AddonTitles
this.AddonIcons = AddonIcons
this.SuggestionLabels = AddonSuggestionLabels
this.TabNames = Object.assign({ main: 'Add-on Store' }, AddonTitles)
}
}
</script>

0 comments on commit 2bc3569

Please sign in to comment.