aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-08 10:55:27 +0200
committerChocobozzz <me@florianbigard.com>2018-08-08 10:55:27 +0200
commit92b9d60c00432c58d6184f3683bdb14a0300a3c6 (patch)
tree4ef84e470e8289225c3987e48c458086b1883d67 /client/src/app/shared
parenta031ab0b9b2f06969f074622383a5c974666ba93 (diff)
downloadPeerTube-92b9d60c00432c58d6184f3683bdb14a0300a3c6.tar.gz
PeerTube-92b9d60c00432c58d6184f3683bdb14a0300a3c6.tar.zst
PeerTube-92b9d60c00432c58d6184f3683bdb14a0300a3c6.zip
Add ability to delete our account
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/users/user.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts
index 365a21df7..e6dc3dbf8 100644
--- a/client/src/app/shared/users/user.service.ts
+++ b/client/src/app/shared/users/user.service.ts
@@ -39,6 +39,16 @@ export class UserService {
39 ) 39 )
40 } 40 }
41 41
42 deleteMe () {
43 const url = UserService.BASE_USERS_URL + 'me'
44
45 return this.authHttp.delete(url)
46 .pipe(
47 map(this.restExtractor.extractDataBool),
48 catchError(err => this.restExtractor.handleError(err))
49 )
50 }
51
42 changeAvatar (avatarForm: FormData) { 52 changeAvatar (avatarForm: FormData) {
43 const url = UserService.BASE_USERS_URL + 'me/avatar/pick' 53 const url = UserService.BASE_USERS_URL + 'me/avatar/pick'
44 54