feat: team mutation
This commit is contained in:
committed by
liyasthomas
parent
7ab1bbaf62
commit
6b02d290a5
@@ -96,7 +96,6 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: "edit-team"): void
|
(e: "edit-team"): void
|
||||||
|
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export const createTeam = (name: TeamName) =>
|
|||||||
export const deleteTeam = (teamID: string) =>
|
export const deleteTeam = (teamID: string) =>
|
||||||
runMutation<void, DeleteTeamErrors>(
|
runMutation<void, DeleteTeamErrors>(
|
||||||
gql`
|
gql`
|
||||||
mutation DeleteTeam($teamID: String!) {
|
mutation DeleteTeam($teamID: ID!) {
|
||||||
deleteTeam(teamID: $teamID)
|
deleteTeam(teamID: $teamID)
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
@@ -58,7 +58,7 @@ export const deleteTeam = (teamID: string) =>
|
|||||||
export const leaveTeam = (teamID: string) =>
|
export const leaveTeam = (teamID: string) =>
|
||||||
runMutation<void, ExitTeamErrors>(
|
runMutation<void, ExitTeamErrors>(
|
||||||
gql`
|
gql`
|
||||||
mutation ExitTeam($teamID: String!) {
|
mutation ExitTeam($teamID: ID!) {
|
||||||
leaveTeam(teamID: $teamID)
|
leaveTeam(teamID: $teamID)
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
<p class="flex text-secondaryLight items-center">
|
<p class="flex text-secondaryLight items-center">
|
||||||
{{ currentUser.email || $t("state.nothing_found") }}
|
{{ currentUser.email || $t("state.nothing_found") }}
|
||||||
<SmartIcon
|
<SmartIcon
|
||||||
name="verified"
|
|
||||||
v-if="currentUser.emailVerified"
|
v-if="currentUser.emailVerified"
|
||||||
|
name="verified"
|
||||||
class="ml-2 text-green-500 svg-icons"
|
class="ml-2 text-green-500 svg-icons"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user