Skip to content

Commit 796ebf2

Browse files
committed
vue upgrade fixes
Signed-off-by: Mark Herwege <[email protected]>
1 parent b39e567 commit 796ebf2

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

bundles/org.openhab.ui/web/src/pages/settings/health/health-overview.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
:after="persistenceProblemsCount > 0 ? undefined : persistenceProblemsCount"
5959
:badge-color="persistenceProblemsCount ? 'red' : 'blue'"
6060
:footer="objectsSubtitles.persistenceProblems">
61-
<f7-icon slot="media" f7="link" color="gray" />
61+
<template #media>
62+
<f7-icon f7="link" color="gray" />
63+
</template>
6264
</f7-list-item>
6365
</f7-list>
6466
</f7-col>

bundles/org.openhab.ui/web/src/pages/settings/health/health-persistence.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<template>
22
<f7-page @page:afterin="onPageAfterIn">
3-
<f7-navbar title="Persistence Configuration Issues" back-link="Health Checks" back-link-url="/settings/health/" back-link-force>
3+
<f7-navbar title="Persistence Configuration Issues"
4+
back-link="Health Checks"
5+
back-link-url="/settings/health/"
6+
back-link-force>
47
<f7-nav-right>
58
<developer-dock-icon />
69
</f7-nav-right>
@@ -25,8 +28,13 @@
2528
<f7-block-title>&nbsp;Loading...</f7-block-title>
2629
<f7-list contacts-list class="col">
2730
<f7-list-group>
28-
<f7-list-item media-item v-for="n in 10" :key="n" :class="`skeleton-text skeleton-effect-blink`"
29-
title="Type of problem" subtitle="Persistence service" footer="" />
31+
<f7-list-item media-item
32+
v-for="n in 10"
33+
:key="n"
34+
:class="`skeleton-text skeleton-effect-blink`"
35+
title="Type of problem"
36+
subtitle="Persistence service"
37+
footer="" />
3038
</f7-list-group>
3139
</f7-list>
3240
</f7-col>
@@ -36,11 +44,19 @@
3644
{{ persistenceProblems.length }} persistence configuration problem{{ plural(persistenceProblems.length) }} found
3745
</f7-block-title>
3846
<f7-list class="col" contacts-list>
39-
<f7-list-item v-for="persistenceProblem in persistenceProblems" :key="problemKey(persistenceProblem)" media-item
40-
:link="getLinkForProblem(persistenceProblem)" :title="'Problem: ' + explanation(persistenceProblem.reason)"
47+
<f7-list-item v-for="persistenceProblem in persistenceProblems"
48+
:key="problemKey(persistenceProblem)"
49+
media-item
50+
:link="getLinkForProblem(persistenceProblem)"
51+
:title="'Problem: ' + explanation(persistenceProblem.reason)"
4152
:subtitle="persistenceProblem.serviceId ? 'Persistence Service: ' + persistenceProblem.serviceId : ''"
4253
:footer="persistenceProblem.items ? 'Items: ' + persistenceProblem.items.join(', ') : ''">
43-
<f7-icon v-if="!persistenceProblem.editable" slot="after-title" f7="lock_fill" size="1rem" color="gray" />
54+
<template #after-title>
55+
<f7-icon v-if="!persistenceProblem.editable"
56+
f7="lock_fill"
57+
size="1rem"
58+
color="gray" />
59+
</template>
4460
</f7-list-item>
4561
</f7-list>
4662
</f7-col>

bundles/org.openhab.ui/web/src/pages/settings/persistence/strategy-picker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
openIn: 'popup',
5757
virtualList: true,
5858
virtualListHeight: (this.$theme.aurora) ? 32 : undefined,
59-
setValueText: false || this.value?.length
59+
setValueText: this.value?.length
6060
}
6161
}
6262
},
@@ -68,7 +68,7 @@ export default {
6868
}
6969
})
7070
},
71-
beforeDestroy () {
71+
beforeUnmount () {
7272
const smartSelect = this.$refs.smartSelect?.f7SmartSelect
7373
if (smartSelect) {
7474
smartSelect.off('closed', this.select)

bundles/org.openhab.ui/web/src/pages/wizards/setup-wizard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ export default {
628628
this.installingAddons = true
629629
f7.tab.show('#wait', false)
630630
631-
this.bindingInstalled = this.toInstallAddons.find(a => (a.type === 'binding'))
632-
this.persistenceInstalled = this.toInstallAddons.find(a => (a.type === 'persistence'))
631+
this.bindingInstalled = this.toInstallAddons.find((a) => (a.type === 'binding'))
632+
this.persistenceInstalled = this.toInstallAddons.find((a) => (a.type === 'persistence'))
633633
const addonsCount = this.toInstallAddons.length
634634
let progress = 0
635635

0 commit comments

Comments
 (0)