Skip to content

Commit

Permalink
Merge pull request #460 from softwaremagico/459-pictures-are-not-corr…
Browse files Browse the repository at this point in the history
…eclty-shown-into-the-scoring-panel

Fixing issue that participant entity on frontend is not updating avatar
  • Loading branch information
softwaremagico authored Jun 7, 2024
2 parents f8c08f9 + e138f0e commit 5013105
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![GitHub last commit](https://img.shields.io/github/last-commit/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![CircleCI](https://circleci.com/gh/softwaremagico/KendoTournamentManager.svg?style=shield)](https://circleci.com/gh/softwaremagico/KendoTournamentManager)
[![Time](https://img.shields.io/badge/development-624h-blueviolet.svg)]()
[![Time](https://img.shields.io/badge/development-624.5h-blueviolet.svg)]()

[![Powered by](https://img.shields.io/badge/powered%20by%20java-orange.svg?logo=OpenJDK&logoColor=white)]()
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=kendo-tournament-backend&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=kendo-tournament-backend)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
<mat-icon>switch_camera</mat-icon>
{{'switch' | translate}}
</button>
<button (click)="saveImage()" *ngIf="(RbacActivity.TAKE_PICTURE | rbac : this.rbacService.getActivities())"
[disabled]="selectedPicture == undefined" color="primary"
mat-flat-button
mat-raised-button type="button">
<mat-icon>photo_album</mat-icon>
{{'selectButton' | translate}}
</button>
<button (click)="fileInput.click()"
*ngIf="availableCameras<=1 && (RbacActivity.UPLOAD_PICTURE | rbac : this.rbacService.getActivities())"
mat-flat-button mat-raised-button
Expand All @@ -42,13 +49,6 @@
{{'upload' | translate}}
<input #fileInput (change)="handleFileInput($event)" accept=".jpg,.jpeg,.png" style="display:none;" type="file"/>
</button>
<button (click)="saveImage()" *ngIf="(RbacActivity.TAKE_PICTURE | rbac : this.rbacService.getActivities())"
[disabled]="selectedPicture == undefined" color="primary"
mat-flat-button
mat-raised-button type="button">
<mat-icon>photo_album</mat-icon>
{{'selectButton' | translate}}
</button>
<button (click)="closeDialog()" color="warn" mat-flat-button mat-raised-button type="button">
<mat-icon>cancel</mat-icon>
{{'close' | translate}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class ParticipantPictureDialogBoxComponent extends RbacBasedComponent imp
this.fileService.setBase64Picture(image).subscribe((_picture: ParticipantImage): void => {
this.messageService.infoMessage('infoPictureStored');
this.pictureUpdatedService.isPictureUpdated.next(_picture.base64);
this.participant.hasAvatar = true;
this.closeDialog();
});
}
Expand Down

0 comments on commit 5013105

Please sign in to comment.