Skip to content

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

Merge remote-tracking branch 'upstream/main' into newstate/firebase

Andrew Bastin7c2becd3a483
diff --cc components/firebase/Email.vue
index 4f9f20da1,f97b84885..a84b6095c
--- a/components/firebase/Email.vue
+++ b/components/firebase/Email.vue
@@@ -87,20 -88,9 +87,9 @@@ export default
}
},
mounted() {
- this.$subscribeTo(fb.currentUser$, (user) => {
+ this.$subscribeTo(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() {
diff --cc components/teams/index.vue
index 4c3f6d98c,4fa5e1266..1a74b6a09
--- a/components/teams/index.vue
+++ b/components/teams/index.vue
@@@ -1,14 -1,8 +1,8 @@@
<template>
- <AppSection
- ref="teams"
- class="green"
- icon="history"
- :label="$t('teams')"
- no-legend
- >
+ <AppSection ref="teams" :label="$t('teams')">
<div class="flex flex-col">
<label>{{ $t("teams") }}</label>
- <div v-if="fb.currentUser"></div>
+ <div v-if="currentUser"></div>
<div v-else>
<label>{{ $t("login_with") }}</label>
<p>
diff --cc pages/settings.vue
index 210f5f7a3,449fe75c4..40432b9b6
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@@ -4,14 -4,14 +4,14 @@@
<Teams />
</div>
- <AppSection ref="account" :label="$t('account')" no-legend>
+ <AppSection ref="account" :label="$t('account')">
<div class="flex flex-col">
<label>{{ $t("account") }}</label>
- <div v-if="fb.currentUser">
+ <div v-if="currentUser">
<button class="icon">
<img
- v-if="fb.currentUser.photoURL"
- :src="fb.currentUser.photoURL"
+ v-if="currentUser.photoURL"
+ :src="currentUser.photoURL"
class="w-6 h-6 rounded-full material-icons"
/>
<i v-else class="material-icons">account_circle</i>