From f7580f5337a6199c1003fe800fe3f07510e66f94 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 14 Jan 2020 16:58:14 -0500 Subject: [PATCH] Removing placeholder image for avatar upload. - Fixes #419 --- ui/src/components/user.tsx | 31 +++++++++++++------------------ ui/src/translations/en.ts | 1 + 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index 30ee3dcf1..c95b18bb1 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -130,14 +130,7 @@ export class User extends Component { this.state.username = this.props.match.params.username; this.subscription = WebSocketService.Instance.subject - .pipe( - retryWhen(errors => - errors.pipe( - delay(3000), - take(10) - ) - ) - ) + .pipe(retryWhen(errors => errors.pipe(delay(3000), take(10)))) .subscribe( msg => this.parseMessage(msg), err => console.error(err), @@ -449,16 +442,18 @@ export class User extends Component { htmlFor="file-upload" class="pointer ml-4 text-muted small font-weight-bold" > - + {!this.state.userSettingsForm.avatar ? ( + + # + + ) : ( + + )}