2025-01-28 17:54:30 -06:00
|
|
|
@page "/Redistributables/{id:guid}/Scripts"
|
|
|
|
|
@using LANCommander.SDK.Enums
|
|
|
|
|
@using LANCommander.Server.UI.Pages.Redistributables.Components
|
|
|
|
|
@attribute [Authorize(Roles = RoleService.AdministratorRoleName)]
|
|
|
|
|
@inject NavigationManager NavigationManager
|
|
|
|
|
|
|
|
|
|
<RedistributableEditView Id="Id">
|
2026-03-13 00:45:21 -05:00
|
|
|
<CascadingValue Name="RedistributableId" Value="context.Id">
|
2026-06-19 20:37:13 -05:00
|
|
|
<ScriptEditor AllowedTypes="new[] { ScriptType.Install, ScriptType.Uninstall, ScriptType.DetectInstall, ScriptType.NameChange, ScriptType.BeforeStart, ScriptType.AfterStop, ScriptType.Package, ScriptType.RunWrapper }" />
|
2026-03-13 00:45:21 -05:00
|
|
|
</CascadingValue>
|
2025-01-28 17:54:30 -06:00
|
|
|
</RedistributableEditView>
|
|
|
|
|
|
|
|
|
|
@code {
|
2026-01-24 23:35:39 -06:00
|
|
|
[Parameter] public Guid Id { get; set; }
|
|
|
|
|
[Parameter] public string Panel { get; set; }
|
2025-01-28 17:54:30 -06:00
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
|
{
|
2025-02-01 02:21:34 -06:00
|
|
|
if (Id == Guid.Empty)
|
|
|
|
|
NavigationManager.NavigateTo($"/Redistributables", true);
|
2025-01-28 17:54:30 -06:00
|
|
|
}
|
|
|
|
|
}
|