|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
<div id="file-upload-dialog">
|
|
|
|
|
<h1 mat-dialog-title align="center">Upload a new Profile picture!</h1>
|
|
|
|
|
<div class="uploadDialogContent" mat-dialog-content>
|
|
|
|
|
<input type="file" accept="image/*" (change)="onFileInputChange($event)" #name>
|
|
|
|
|
<input style="display: none" id="input-file" type="file" accept="image/*" (change)="onFileInputChange($event)" #name>
|
|
|
|
|
<label for="input-file" class="mat-button mat-raised-button mat-primary">Choose File</label>
|
|
|
|
|
<div id="inputPreviewWrapper">
|
|
|
|
|
<h2 *ngIf="localFileUrl">Preview:</h2>
|
|
|
|
|
<img *ngIf="localFileUrl" id="inputPreview" [src]="localFileUrl"/>
|
|
|
|
|