Script editor parameter based on LatestArchiveId
This commit is contained in:
parent
7e34ad3c12
commit
883e23fc1f
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
<SpaceItem Style="flex-grow: 1">
|
||||
<Input @bind-Value="@context.Icon" />
|
||||
</SpaceItem>
|
||||
@if (context.Archives != null && context.Archives.Count > 0)
|
||||
@if (LatestArchiveId != Guid.Empty)
|
||||
{
|
||||
<SpaceItem>
|
||||
<Button OnClick="BrowseForIcon" Type="@ButtonType.Primary">Browse</Button>
|
||||
|
@ -108,7 +108,7 @@
|
|||
<SpaceItem>
|
||||
<Card Title="Scripts">
|
||||
<Body>
|
||||
<ScriptEditor @bind-Scripts="Game.Scripts" GameId="Game.Id" ArchiveId="Game.Archives.OrderByDescending(a => a.CreatedOn).FirstOrDefault().Id" />
|
||||
<ScriptEditor @bind-Scripts="Game.Scripts" GameId="Game.Id" ArchiveId="@LatestArchiveId" />
|
||||
</Body>
|
||||
</Card>
|
||||
</SpaceItem>
|
||||
|
|
Loading…
Add table
Reference in a new issue