@if (StatusDto.IsEnabled)
{
if (StatusDto.IsReachable)
{
VersionPluginsNo Plugins found
No plugins found in instance configuration
}
else
{
Container Helper unreachable
The container helper is unreachable. No management actions are available
}
}
else
{
Container Helper is disabled
The container helper is disabled on this instance.
This might be due to running a multiple container moonlight setup
}
@code
{
private ContainerHelperStatusDto StatusDto;
private string SelectedVersion = "v2.1";
private async Task LoadAsync(LazyLoader _)
{
StatusDto = (await HttpClient.GetFromJsonAsync("api/admin/ch/status"))!;
}
private async Task ApplyAsync()
{
await AlertDialogService.ConfirmDangerAsync(
"Moonlight Rebuild",
"If you continue the moonlight instance will become unavailable during the rebuild process. This will impact users on this instance",
async () =>
{
await DialogService.LaunchAsync(
parameters => { parameters[nameof(UpdateInstanceModal.Version)] = SelectedVersion; },
onConfigure: model =>
{
model.ShowCloseButton = false;
model.ClassName = "sm:max-w-4xl!";
}
);
}
);
}
}