Add redistributable support to script editor
parent
2287ac9922
commit
a3b1dabbb1
|
@ -111,8 +111,9 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
[Parameter] public Guid GameId { get; set; }
|
[Parameter] public Guid GameId { get; set; }
|
||||||
|
[Parameter] public Guid RedistributableId { get; set; }
|
||||||
[Parameter] public Guid ArchiveId { get; set; }
|
[Parameter] public Guid ArchiveId { get; set; }
|
||||||
[Parameter] public ICollection<Script> Scripts { get; set; }
|
[Parameter] public ICollection<Script> Scripts { get; set; }
|
||||||
[Parameter] public EventCallback<ICollection<Script>> ScriptsChanged { get; set; }
|
[Parameter] public EventCallback<ICollection<Script>> ScriptsChanged { get; set; }
|
||||||
|
@ -150,10 +151,11 @@
|
||||||
private async void Edit(Script script = null)
|
private async void Edit(Script script = null)
|
||||||
{
|
{
|
||||||
if (script == null) {
|
if (script == null) {
|
||||||
Script = new Script()
|
if (GameId != Guid.Empty)
|
||||||
{
|
Script = new Script() { GameId = GameId };
|
||||||
GameId = GameId
|
|
||||||
};
|
if (RedistributableId != Guid.Empty)
|
||||||
|
Script = new Script() { RedistributableId = RedistributableId };
|
||||||
|
|
||||||
if (Editor != null)
|
if (Editor != null)
|
||||||
await Editor.SetValue("");
|
await Editor.SetValue("");
|
Loading…
Reference in New Issue