From fd206f0b2d7e5c8e00e2817266d90ec54f79e1da Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Jan 2018 10:32:03 +0100 Subject: Add ability to update some configuration keys --- .../account-settings/account-details/account-details.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client/src/app/account/account-settings/account-details/account-details.component.ts') 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' export class AccountDetailsComponent extends FormReactive implements OnInit { @Input() user: User = null - error: string = null - form: FormGroup formErrors = {} validationMessages = {} @@ -50,7 +48,6 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { autoPlayVideo } - this.error = null this.userService.updateMyDetails(details).subscribe( () => { this.notificationsService.success('Success', 'Information updated.') @@ -58,7 +55,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { this.authService.refreshUserInformation() }, - err => this.error = err.message + err => this.notificationsService.error('Error', err.message) ) } } -- cgit v1.2.3