-
{{ $t("team.join_team", { team: "Tesla" }) }}
-
- {{ $t("team.invited_to_team", { owner: "Elon Musk", team: "Tesla" }) }}
-
-
-
+
+
+ {{ $t("team.invalid_invite_link") }}
+
+
+ {{ $t("team.invalid_invite_link_description") }}
+
+
+
+
{{ $t("team.join_team", { team: "Tesla" }) }}
+
+ {{ $t("team.invited_to_team", { owner: "Elon Musk", team: "Tesla" }) }}
+
+
+
+
+
+
+
+
{{ error }}
+
+
+
+
-
-
-
-
-
@@ -39,17 +58,37 @@ export default defineComponent({
},
data() {
return {
+ invalidLink: false,
showLogin: false,
- // loading : false
- // error : null
+ loading: false,
+ revokedLink: false,
+ error: null,
+ teamID: "",
}
},
beforeMount() {
initializeFirebase()
},
- async mounted() {},
+ mounted() {
+ this.teamID = this.$route.query.id
+ this.invalidLink = !this.teamID
+ // TODO: check revokeTeamInvitation
+ // TODO: check login user already a member
+ },
methods: {
- joinTeam() {},
+ joinTeam() {
+ this.loading = true
+ // TODO: run join team mutation
+ // TODO: show success toast and redirect to home page / error toast
+ // this.$router.push({ path: "/" })
+ // $toast.success(`${t("team.join")}`, {
+ // icon: "person",
+ // })
+ // this.$toast.error(this.$t("error.something_went_wrong"), {
+ // icon: "error_outline",
+ // })
+ // console.error(e)
+ },
},
})