165. Getting profile image and click save button (#22)

This commit is contained in:
Art
2021-09-21 10:52:53 +03:00
parent 3944b43cfa
commit 5222961c68
2 changed files with 12 additions and 5 deletions

View File

@ -219,8 +219,8 @@
</div>
<div class="custom-file">
<input type="file" accept="image/*" name="profileImage"
(change)="onProfileImageChange($event)"
class="custom-file-input" >
(change)="onProfileImageChange($any($event).target.files)"
class="custom-file-input">
<label class="custom-file-label">
<span [hidden]="true"> fileName </span>
<span [hidden]="false">Choose File</span>
@ -247,7 +247,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="new-user-close">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
<button type="button" class="btn btn-primary" (click)="saveNewUser()">Save changes</button>
</div>
</div>
</div>