Skip to content

Commit

Permalink
Fixes error on service settings pages (#883)
Browse files Browse the repository at this point in the history
```
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 <boris.krivonog@inova.si>
  • Loading branch information
crnjan authored and ghys committed Apr 18, 2021
1 parent b29d40a commit 3972547
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 3972547

Please sign in to comment.