diff options
Diffstat (limited to 'client/src/app/account/account-settings')
-rw-r--r-- | client/src/app/account/account-settings/account-details/account-details.component.html | 2 | ||||
-rw-r--r-- | client/src/app/account/account-settings/account-details/account-details.component.ts | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.html b/client/src/app/account/account-settings/account-details/account-details.component.html index c8e1e73b0..8f1475a4d 100644 --- a/client/src/app/account/account-settings/account-details/account-details.component.html +++ b/client/src/app/account/account-settings/account-details/account-details.component.html | |||
@@ -1,5 +1,3 @@ | |||
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | ||
2 | |||
3 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> | 1 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> |
4 | <div class="form-group"> | 2 | <div class="form-group"> |
5 | <input | 3 | <input |
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.ts b/client/src/app/account/account-settings/account-details/account-details.component.ts index b8c19d8d6..917f31651 100644 --- a/client/src/app/account/account-settings/account-details/account-details.component.ts +++ b/client/src/app/account/account-settings/account-details/account-details.component.ts | |||
@@ -14,8 +14,6 @@ import { FormReactive, User, UserService } from '../../../shared' | |||
14 | export class AccountDetailsComponent extends FormReactive implements OnInit { | 14 | export class AccountDetailsComponent extends FormReactive implements OnInit { |
15 | @Input() user: User = null | 15 | @Input() user: User = null |
16 | 16 | ||
17 | error: string = null | ||
18 | |||
19 | form: FormGroup | 17 | form: FormGroup |
20 | formErrors = {} | 18 | formErrors = {} |
21 | validationMessages = {} | 19 | validationMessages = {} |
@@ -50,7 +48,6 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
50 | autoPlayVideo | 48 | autoPlayVideo |
51 | } | 49 | } |
52 | 50 | ||
53 | this.error = null | ||
54 | this.userService.updateMyDetails(details).subscribe( | 51 | this.userService.updateMyDetails(details).subscribe( |
55 | () => { | 52 | () => { |
56 | this.notificationsService.success('Success', 'Information updated.') | 53 | this.notificationsService.success('Success', 'Information updated.') |
@@ -58,7 +55,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
58 | this.authService.refreshUserInformation() | 55 | this.authService.refreshUserInformation() |
59 | }, | 56 | }, |
60 | 57 | ||
61 | err => this.error = err.message | 58 | err => this.notificationsService.error('Error', err.message) |
62 | ) | 59 | ) |
63 | } | 60 | } |
64 | } | 61 | } |