Skip to content

Commit

Permalink
Add the help button to menu/list pages where missing
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 Jan 26, 2024
1 parent 1c278ab commit a06672b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion bundles/org.openhab.ui/web/src/pages/about.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template>
<f7-page name="about" class="page-about" @page:beforein="beforePageIn">
<f7-navbar large :title-large="$t('about.title')" :title="$t('about.title')" :back-link="$t('dialogs.back')" />
<f7-navbar large :title-large="$t('about.title')" :title="$t('about.title')" :back-link="$t('dialogs.back')">
<f7-nav-right>
<f7-link v-if="$store.state.developerDock && $f7.width >= 1280" icon-f7="question_circle_fill" @click="$f7.emit('toggleDeveloperDock')" />
<f7-link v-else-if="$f7.width >= 1280" icon-f7="question_circle" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'current'})" />
</f7-nav-right>
</f7-navbar>
<f7-block class="block-narrow after-big-title">
<f7-row>
<f7-col>
Expand Down
2 changes: 2 additions & 0 deletions bundles/org.openhab.ui/web/src/pages/addons/addons-store.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<span v-if="currentTab === 'search'">Search</span>
</f7-nav-title>
<f7-nav-right>
<f7-link v-if="$store.state.developerDock && $f7.width >= 1280" icon-f7="question_circle_fill" @click="$f7.emit('toggleDeveloperDock')" />
<f7-link v-else-if="$f7.width >= 1280" icon-f7="question_circle" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'current'})" />
<f7-link
v-show="currentTab === 'search'"
class="searchbar-enable"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<template>
<f7-page name="devtools" @page:beforeremove="onPageBeforeRemove">
<f7-navbar title="Developer Tools" back-link="Back" back-link-url="/" back-link-force no-hairline />
<f7-navbar title="Developer Tools" back-link="Back" back-link-url="/" back-link-force no-hairline>
<f7-nav-right>
<f7-link v-if="$store.state.developerDock && $f7.width >= 1280" icon-f7="question_circle_fill" @click="$f7.emit('toggleDeveloperDock')" />
<f7-link v-else-if="$f7.width >= 1280" icon-f7="question_circle" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'current'})" />
</f7-nav-right>
</f7-navbar>
<f7-toolbar tabbar position="top">
<f7-link @click="currentTab = 'menu'" :tab-link-active="currentTab === 'menu'" class="tab-link">
Expert Features
</f7-link>
<f7-link @click="currentTab = 'debug'" :tab-link-active="currentTab === 'debug'" class="tab-link">
Debug
</f7-link>
<f7-nav-right />
</f7-toolbar>

<f7-tabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<f7-page @page:init="onPageInit" @page:afterin="onPageAfterIn" class="page-settings">
<f7-navbar large :large-transparent="false" title-large="Settings" title="Settings" back-link="Back" back-link-url="/home/" back-link-force>
<f7-nav-right>
<f7-link v-if="$store.state.developerDock && $f7.width >= 1280" icon-f7="question_circle_fill" @click="$f7.emit('toggleDeveloperDock')" />
<f7-link v-else-if="$f7.width >= 1280" icon-f7="question_circle" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'current'})" />
<f7-link
class="searchbar-enable"
data-searchbar=".searchbar-demo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<f7-page @page:afterin="onPageAfterIn" @page:beforeout="onPageBeforeOut">
<f7-navbar title="Persistence Settings" back-link="Settings" back-link-url="/settings/" back-link-force>
<f7-nav-right v-if="persistenceList.length > 0">
<f7-link v-if="$store.state.developerDock && $f7.width >= 1280" icon-f7="question_circle_fill" @click="$f7.emit('toggleDeveloperDock')" />
<f7-link v-else-if="$f7.width >= 1280" icon-f7="question_circle" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'current'})" />
<f7-link @click="save()" v-if="$theme.md" icon-md="material:save" icon-only />
<f7-link @click="save()" v-if="!$theme.md">
Save<span v-if="$device.desktop">&nbsp;(Ctrl-S)</span>
Expand Down

0 comments on commit a06672b

Please sign in to comment.