Skip to content

Commit

Permalink
Display a tab bar on smaller screens where the side menu is hidden
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 300477c commit 2859f6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bundles/org.openhab.ui/web/src/pages/addons/addons-store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<developer-dock-icon />
</f7-nav-right>
</f7-navbar>
<f7-toolbar v-if="$f7.width < 1024" tabbar labels bottom>
<f7-link tab-link :tab-link-active="$store.state.pagePath === '/addons/'" href="/addons/" icon-ios="f7:bag_fill" icon-aurora="f7:bag_fill" icon-md="f7:bag_fill" />
<f7-link v-for="section in Object.keys(AddonTitles)" :key="section" tab-link :tab-link-active="$store.state.pagePath === `/addons/${section}/`" :href="`/addons/${section}`" :icon-ios="`f7:${AddonIcons[section]}`" :icon-aurora="`f7:${AddonIcons[section]}`" :icon-md="`f7:${AddonIcons[section]}`" />
</f7-toolbar>

<f7-block class="no-padding" style="margin-top: 0">
<f7-searchbar
Expand Down Expand Up @@ -232,7 +236,7 @@
<script>
import AddonStoreMixin from './addon-store-mixin'
import AddonsSection from '@/components/addons/addons-section.vue'
import { AddonTitles, AddonSuggestionLabels } from '@/assets/addon-store'
import { AddonTitles, AddonIcons, AddonSuggestionLabels } from '@/assets/addon-store'
export default {
mixins: [AddonStoreMixin],
Expand All @@ -242,6 +246,7 @@ export default {
data () {
return {
AddonTitles: AddonTitles,
AddonIcons: AddonIcons,
SuggestionLabels: AddonSuggestionLabels,
TabNames: Object.assign({ main: 'Add-on Store' }, AddonTitles),
Expand Down

0 comments on commit 2859f6d

Please sign in to comment.