feat: successfully joined team prompt
This commit is contained in:
@@ -492,6 +492,8 @@
|
|||||||
"join": "Invitation accepted",
|
"join": "Invitation accepted",
|
||||||
"join_beta": "Join the beta program to access teams.",
|
"join_beta": "Join the beta program to access teams.",
|
||||||
"join_team": "Join {team}",
|
"join_team": "Join {team}",
|
||||||
|
"joined_team": "You have joined {team}",
|
||||||
|
"joined_team_description": "You are now a member of this team",
|
||||||
"left": "You left the team",
|
"left": "You left the team",
|
||||||
"login_to_continue": "Login to continue",
|
"login_to_continue": "Login to continue",
|
||||||
"login_to_continue_description": "You need to be logged in to join a team.",
|
"login_to_continue_description": "You need to be logged in to join a team.",
|
||||||
|
|||||||
@@ -63,7 +63,11 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!inviteDetails.loading && E.isRight(inviteDetails.data)"
|
v-if="
|
||||||
|
!inviteDetails.loading &&
|
||||||
|
E.isRight(inviteDetails.data) &&
|
||||||
|
!joinTeamSuccess
|
||||||
|
"
|
||||||
class="flex-col flex-1 p-4 flex items-center justify-center"
|
class="flex-col flex-1 p-4 flex items-center justify-center"
|
||||||
>
|
>
|
||||||
<h1 class="heading">
|
<h1 class="heading">
|
||||||
@@ -94,7 +98,32 @@
|
|||||||
@click.native="joinTeam"
|
@click.native="joinTeam"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<pre v-if="error" class="p-4 text-red-500">{{ error }}</pre>
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
!inviteDetails.loading &&
|
||||||
|
E.isRight(inviteDetails.data) &&
|
||||||
|
joinTeamSuccess
|
||||||
|
"
|
||||||
|
class="flex-col flex-1 p-4 flex items-center justify-center"
|
||||||
|
>
|
||||||
|
<h1 class="heading">
|
||||||
|
{{
|
||||||
|
$t("team.joined_team", {
|
||||||
|
team: inviteDetails.data.right.teamInvitation.team.name,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</h1>
|
||||||
|
<p class="text-secondaryLight mt-2">
|
||||||
|
{{
|
||||||
|
$t("team.joined_team_description", {
|
||||||
|
team: inviteDetails.data.right.teamInvitation.team.name,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
<div class="mt-8">
|
||||||
|
<ButtonSecondary to="/" svg="home" filled :label="$t('app.home')" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -165,8 +194,8 @@ export default defineComponent({
|
|||||||
showLogin: false,
|
showLogin: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
revokedLink: false,
|
revokedLink: false,
|
||||||
error: null,
|
|
||||||
inviteID: "",
|
inviteID: "",
|
||||||
|
joinTeamSuccess: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
@@ -193,8 +222,8 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
|
this.joinTeamSuccess = true
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$router.push("/")
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)()
|
)()
|
||||||
|
|||||||
Reference in New Issue
Block a user