Done. Needs testing once back online
This commit is contained in:
@ -50,6 +50,17 @@ class AuthStore {
|
||||
}
|
||||
};
|
||||
|
||||
@action
|
||||
deleteUser = async () => {
|
||||
await client.post(`/user.delete`, { confirmation: true });
|
||||
|
||||
runInAction('AuthStore#updateUser', () => {
|
||||
this.user = null;
|
||||
this.team = null;
|
||||
this.token = null;
|
||||
});
|
||||
};
|
||||
|
||||
@action
|
||||
updateUser = async (params: { name: string, avatarUrl: ?string }) => {
|
||||
this.isSaving = true;
|
||||
|
Reference in New Issue
Block a user