Skip to content

Commit

Permalink
v3.27.3 (#218)
Browse files Browse the repository at this point in the history
* Fix selection bugs with cert template picker

* Fix map editor bg issue

* Cleanup

* Remove feedback form if not authed
  • Loading branch information
sei-bstein authored Jan 6, 2025
1 parent 3ded1f2 commit 15bd384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class GameMapEditorComponent implements OnInit {

this.specs = await firstValueFrom(this.gameService.retrieveSpecs(this.gameId));
const game = await firstValueFrom(this.gameService.retrieve(this.gameId));
this.mapImageUrl = game.mapUrl;
this.mapImageUrl = game.background;
}

protected async mousemove(e: MouseEvent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class GameMapImageUrlPipe implements PipeTransform {
if (!value) {
return `${this.config.basehref}assets/map.png`;
}

const isAbsolute = new URL(this.document.baseURI).origin !== new URL(value, this.document.baseURI).origin;
return isAbsolute ? value : `${this.config.imagehost}/${value}`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h2 id="scoreboard" class="text-center my-4">
</h2>
<app-scoreboard [gameId]="ctx.game.id"></app-scoreboard>
</div>
<ng-container *ngIf="ctx.game.feedbackTemplateId && !ctx.player.session?.isBefore">
<ng-container *ngIf="ctx.user?.id && ctx.game.feedbackTemplateId && !ctx.player.session?.isBefore">
<div class="col-6 my-4">
<h2>Feedback</h2>
<app-feedback-submission-form [templateId]="ctx.game.feedbackTemplateId"
Expand Down

0 comments on commit 15bd384

Please sign in to comment.