feat: ability to delete user account and data (#2863)
* feat: add gql mutation * feat: added delete account section in profile page * feat: separate shortcodes section to a component * feat: delete user modal * feat: delete user account * feat: navigate to homepage after delete * chore: improve ui * fix: delete user mutation * chore: minor ui improvements * chore: correct grammar in certain i18n strings * feat: delection section separated to component * feat: separate user delete section into component * feat: defer fetch my teams * feat: disable delete account button on loading state * Update Shortcodes.vue Co-authored-by: Liyas Thomas <liyascthomas@gmail.com> Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
mutation DeleteUser {
|
||||
deleteUser
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { runMutation } from "../GQLClient"
|
||||
import {
|
||||
DeleteUserDocument,
|
||||
DeleteUserMutation,
|
||||
DeleteUserMutationVariables,
|
||||
} from "../graphql"
|
||||
|
||||
type DeleteUserErrors = "user/not_found"
|
||||
|
||||
export const deleteUser = () =>
|
||||
runMutation<
|
||||
DeleteUserMutation,
|
||||
DeleteUserMutationVariables,
|
||||
DeleteUserErrors
|
||||
>(DeleteUserDocument, {})
|
||||
Reference in New Issue
Block a user