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:
Anwarul Islam
2022-12-17 10:01:39 +06:00
committed by GitHub
parent 012f9b5314
commit d36ab337d7
7 changed files with 390 additions and 158 deletions

View File

@@ -0,0 +1,3 @@
mutation DeleteUser {
deleteUser
}

View File

@@ -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, {})