Skip to content

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

feat: team mutation

Andrew Bastin6b02d290a5dc
diff --git a/packages/hoppscotch-app/components/teams/Team.vue b/packages/hoppscotch-app/components/teams/Team.vue
index 6ea0d801c..83f1c6ad0 100644
--- a/packages/hoppscotch-app/components/teams/Team.vue
+++ b/packages/hoppscotch-app/components/teams/Team.vue
@@ -96,7 +96,6 @@ const props = defineProps<{
const emit = defineEmits<{
(e: "edit-team"): void
-
}>()
const {
diff --git a/packages/hoppscotch-app/helpers/backend/mutations/Team.ts b/packages/hoppscotch-app/helpers/backend/mutations/Team.ts
index 4ae3f496e..1002c59fe 100644
--- a/packages/hoppscotch-app/helpers/backend/mutations/Team.ts
+++ b/packages/hoppscotch-app/helpers/backend/mutations/Team.ts
@@ -46,7 +46,7 @@ export const createTeam = (name: TeamName) =>
export const deleteTeam = (teamID: string) =>
runMutation<void, DeleteTeamErrors>(
gql`
- mutation DeleteTeam($teamID: String!) {
+ mutation DeleteTeam($teamID: ID!) {
deleteTeam(teamID: $teamID)
}
`,
@@ -58,7 +58,7 @@ export const deleteTeam = (teamID: string) =>
export const leaveTeam = (teamID: string) =>
runMutation<void, ExitTeamErrors>(
gql`
- mutation ExitTeam($teamID: String!) {
+ mutation ExitTeam($teamID: ID!) {
leaveTeam(teamID: $teamID)
}
`,
diff --git a/packages/hoppscotch-app/pages/profile.vue b/packages/hoppscotch-app/pages/profile.vue
index 359b24e14..88115df9a 100644
--- a/packages/hoppscotch-app/pages/profile.vue
+++ b/packages/hoppscotch-app/pages/profile.vue
@@ -23,8 +23,8 @@
<p class="flex text-secondaryLight items-center">
{{ currentUser.email || $t("state.nothing_found") }}
<SmartIcon
- name="verified"
v-if="currentUser.emailVerified"
+ name="verified"
class="ml-2 text-green-500 svg-icons"
/>
</p>