From 3972547b0d076fbd30b2e368a986ca4cfef0c092 Mon Sep 17 00:00:00 2001 From: Boris Krivonog Date: Sun, 7 Feb 2021 16:52:46 +0100 Subject: [PATCH] Fixes error on service settings pages (#883) ``` vue.esm.js?a026:628 [Vue warn]: Property or method "onPageAfterIn" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. ``` Introduced by #867. Signed-off-by: Boris Krivonog --- .../settings/services/service-settings.vue | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/services/service-settings.vue b/bundles/org.openhab.ui/web/src/pages/settings/services/service-settings.vue index 3e6c68b5d1..34af86ec3f 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/services/service-settings.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/services/service-settings.vue @@ -54,23 +54,23 @@ export default { this.$f7.emit('sidebarRefresh', this.config.locale) } this.$f7router.back() - } - }, - onPageAfterIn () { - if (window) { - window.addEventListener('keydown', this.keyDown) - } - }, - onPageBeforeOut () { - if (window) { - window.removeEventListener('keydown', this.keyDown) - } - }, - keyDown (ev) { - if (ev.keyCode === 83 && (ev.ctrlKey || ev.metaKey)) { - this.save() - ev.stopPropagation() - ev.preventDefault() + }, + onPageAfterIn () { + if (window) { + window.addEventListener('keydown', this.keyDown) + } + }, + onPageBeforeOut () { + if (window) { + window.removeEventListener('keydown', this.keyDown) + } + }, + keyDown (ev) { + if (ev.keyCode === 83 && (ev.ctrlKey || ev.metaKey)) { + this.save() + ev.stopPropagation() + ev.preventDefault() + } } }, created () {