aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users/user.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/users/user.service.ts')
-rw-r--r--client/src/app/shared/users/user.service.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts
index 865e04d48..0d41b900d 100644
--- a/client/src/app/shared/users/user.service.ts
+++ b/client/src/app/shared/users/user.service.ts
@@ -33,4 +33,12 @@ export class UserService {
33 .map(this.restExtractor.extractDataBool) 33 .map(this.restExtractor.extractDataBool)
34 .catch((res) => this.restExtractor.handleError(res)); 34 .catch((res) => this.restExtractor.handleError(res));
35 } 35 }
36
37 updateDetails(details: { displayNSFW: boolean }) {
38 const url = UserService.BASE_USERS_URL + this.authService.getUser().id;
39
40 return this.authHttp.put(url, details)
41 .map(this.restExtractor.extractDataBool)
42 .catch((res) => this.restExtractor.handleError(res));
43 }
36} 44}