feat: show global envs on hover

This commit is contained in:
liyasthomas
2021-08-18 10:34:20 +05:30
parent 6af42e5e08
commit c949783698
5 changed files with 43 additions and 22 deletions

View File

@@ -228,7 +228,7 @@ export default {
text: this.$t("yes"),
onClick: async (_, toastObject) => {
const { user } = await signInWithGithub()
await user.linkAndRetrieveDataWithCredential(pendingCred)
await user.linkWithCredential(pendingCred)
this.showLoginSuccess()
@@ -236,6 +236,10 @@ export default {
},
},
})
} else {
this.$toast.error(this.$t("error.something_went_wrong"), {
icon: "error",
})
}
}
@@ -304,8 +308,7 @@ export default {
text: this.$t("yes"),
onClick: async (_, toastObject) => {
const { user } = await signInUserWithGoogle()
// TODO: handle deprecation
await user.linkAndRetrieveDataWithCredential(pendingCred)
await user.linkWithCredential(pendingCred)
this.showLoginSuccess()
@@ -313,6 +316,10 @@ export default {
},
},
})
} else {
this.$toast.error(this.$t("error.something_went_wrong"), {
icon: "error",
})
}
}