forked from fullstackproltd/AspNetCoreSpa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 12 additions & 9 deletions
21
ClientApp/app/account/+profile/user-photo/user-photo.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<div class="row justify-content-center"> | ||
<figure class="figure"> | ||
<img [src]="selectedImage?.url ? selectedImage.url : profilePicture" class="figure-img img-fluid rounded" style="width: 200px;height: 200px;"> | ||
<img [src]="selectedImage?.url || existingImage" class="figure-img img-fluid rounded" style="width: 200px;height: 200px;"> | ||
<figcaption class="figure-caption text-right">{{selectedImage?.name}}</figcaption> | ||
</figure> | ||
</div> | ||
|
||
<div class="row justify-content-center"> | ||
<input type="file" id="file" *ngIf="!selectedImage" (change)="fileChange($event)"> | ||
</div> | ||
|
||
<div class="row justify-content-center" *ngIf="selectedImage"> | ||
<button type="button" class="btn btn-warning" (click)="cancel()">Cancel</button> | ||
<button type="button" class="btn btn-primary" (click)="upload()">Use this</button> | ||
<div class="row justify-content-center" *ngIf="!selectedImage"> | ||
<label class="custom-file"> | ||
<input type="file" id="file" class="custom-file-input" (change)="fileChange($event)"> | ||
<span class="custom-file-control"></span> | ||
</label> | ||
</div> | ||
|
||
{{selectedImage | json}} | ||
<div class="row justify-content-center"> | ||
<div class="btn-group" *ngIf="selectedImage"> | ||
<button type="button" class="btn btn-secondary" (click)="cancel()">Cancel</button> | ||
<button type="button" class="btn btn-primary" (click)="upload()">Use this</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters