Skip to content

Commit

Permalink
Fix auto-opening developer dock
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
  • Loading branch information
JustinGeorgi committed Dec 9, 2023
1 parent 0c199ec commit 36549d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions bundles/org.openhab.ui/web/src/assets/i18n/common/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"home.overview.tab": "Übersicht",
"home.overview.button.documentation": "Dokumentation",
"home.overview.button.tutorial": "Tutorial",
"home.overview.button.quickstart": "Schnellstartanleitung",
"home.locations.title": "Standorte",
"home.locations.tab": "Standorte",
"home.equipment.title": "Geräte",
Expand Down
1 change: 1 addition & 0 deletions bundles/org.openhab.ui/web/src/assets/i18n/common/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"home.overview.tab": "Overview",
"home.overview.button.documentation": "Documentation",
"home.overview.button.tutorial": "Tutorial",
"home.overview.button.quickstart": "Quick Start Guide",
"home.locations.title": "Locations",
"home.locations.tab": "Locations",
"home.equipment.title": "Equipment",
Expand Down
7 changes: 0 additions & 7 deletions bundles/org.openhab.ui/web/src/components/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ export default {
activeDock: 'tools',
activeToolTab: 'pin',
activeHelpTab: 'current',
quickStartShow: true,
currentUrl: ''
}
},
Expand Down Expand Up @@ -505,12 +504,6 @@ export default {
if (data[2]) dayjs.locale(data[2].key)
const page = data[0].find((p) => p.uid === 'overview')
if ((!page) || (page.component !== 'oh-layout-page') || (!page.slots || (!page.slots.default.length && !page.slots.masonry && !page.slots.canvas && !page.slots.grid))) {
if (this.quickStartShow) this.selectDeveloperDock({ 'dock': 'help', 'helpTab': 'quick' })
this.quickStartShow = false
}
// finished with loading
this.ready = true
return Promise.resolve()
Expand Down
3 changes: 3 additions & 0 deletions bundles/org.openhab.ui/web/src/pages/home/overview-tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<span style="width: 8px" />
<f7-button large color="blue" external href="https://openhab.org/link/tutorial" target="_blank" v-t="'home.overview.button.tutorial'" />
</f7-row>
<f7-row v-else class="display-flex justify-content-center">
<f7-button large fill color="blue" @click="$f7.emit('selectDeveloperDock',{'dock':'help','helpTab':'quick'})" v-t="'home.overview.button.quickstart'" />
</f7-row>
</div>
</div>
</template>
Expand Down

0 comments on commit 36549d1

Please sign in to comment.