Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Close email modal on login complete

Andrew Bastin9b43f9a40c43
diff --git a/components/firebase/Email.vue b/components/firebase/Email.vue
index 4e0bc87e9..b36cb72da 100644
--- a/components/firebase/Email.vue
+++ b/components/firebase/Email.vue
@@ -73,6 +73,10 @@ export default {
}
},
mounted() {
+ this.$subscribeTo(fb.currentUser$, (user) => {
+ if (user) this.hideModal()
+ })
+
this._keyListener = function (e) {
if (e.key === "Escape") {
e.preventDefault()