refactor: modals (#1720)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Ilya
2021-06-15 13:18:38 +05:00
committed by GitHub
parent 7cbb61bdf8
commit 5fe8fce89d
9 changed files with 38525 additions and 175 deletions

View File

@@ -91,17 +91,6 @@ export default {
this.$subscribeTo(fb.currentUser$, (user) => {
if (user) this.hideModal()
})
this._keyListener = function (e) {
if (e.key === "Escape") {
e.preventDefault()
this.hideModal()
}
}
document.addEventListener("keydown", this._keyListener.bind(this))
},
beforeDestroy() {
document.removeEventListener("keydown", this._keyListener)
},
methods: {
async signInWithEmail() {