Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Jun 9, 2022
1 parent b7638ec commit 2cec88a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gloomhavensecretary",
"version": "0.3.0",
"version": "0.3.1",
"license": "AGPL3",
"description": "Gloomhaven Secretary is an angular based Gloomhaven Helper clone.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/footer/level/level.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="title">
<span *ngIf="gameManager.game.scenario && gameManager.game.scenario.index" class="index">#{{gameManager.game.scenario.index}}</span>
<span #button></span>
<span *ngIf="gameManager.game.scenario" class="name">{{gameManager.game.scenario.name}}</span>
<span *ngIf="gameManager.game.scenario" class="name">{{'data.scenario.' + gameManager.game.scenario.name | ghsLabel}}</span>
</div>
<div class="values">
<span class="level">{{gameManager.game.level}} <img src="./assets/images/level.svg" /></span>
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/header/menu/scenario/scenario.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
</div>
<div class="line editions">
<label *ngFor="let e of gameManager.editions">
<label *ngFor="let e of (gameManager.game.edition ? [gameManager.game.edition] : gameManager.editions);">
<input type="radio" name="radio" [value]="e" (change)="setEdition(e)" [checked]="edition == e">
{{'data.edition.' + e | ghsLabel}}
</label>
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/header/menu/scenario/scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ScenarioMenuComponent {
gameManager: GameManager = gameManager;
settingsManager: SettingsManager = settingsManager;
GameState = GameState;
edition: string | undefined = (!gameManager.game.scenario || !gameManager.game.scenario.custom) && gameManager.editions[ 0 ] || undefined;
edition: string | undefined = (!gameManager.game.scenario || !gameManager.game.scenario.custom) && (gameManager.game.edition || gameManager.editions[ 0 ]) || undefined;

setEdition(edition: string) {
this.edition = edition;
Expand Down

0 comments on commit 2cec88a

Please sign in to comment.