add scheduled playout rebuild (#376)
* configure scheduled playout rebuild * implement scheduled playout rebuild * remove variable
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<ColGroup>
|
||||
<col/>
|
||||
<col/>
|
||||
<col style="width: 120px;"/>
|
||||
<col style="width: 180px;"/>
|
||||
</ColGroup>
|
||||
<HeaderContent>
|
||||
<MudTh>
|
||||
@@ -47,6 +47,11 @@
|
||||
OnClick="@(_ => RebuildPlayout(context))">
|
||||
</MudIconButton>
|
||||
</MudTooltip>
|
||||
<MudTooltip Text="Schedule Rebuild">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Update"
|
||||
OnClick="@(_ => ScheduleRebuild(context))">
|
||||
</MudIconButton>
|
||||
</MudTooltip>
|
||||
<MudTooltip Text="Delete Playout">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Delete"
|
||||
OnClick="@(_ => DeletePlayout(context))">
|
||||
@@ -140,6 +145,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ScheduleRebuild(PlayoutNameViewModel playout)
|
||||
{
|
||||
var parameters = new DialogParameters
|
||||
{
|
||||
{ "PlayoutId", playout.PlayoutId },
|
||||
{ "ChannelName", playout.ChannelName },
|
||||
{ "ScheduleName", playout.ScheduleName },
|
||||
{ "DailyRebuildTime", playout.DailyRebuildTime }
|
||||
};
|
||||
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall };
|
||||
|
||||
IDialogReference dialog = _dialog.Show<SchedulePlayoutRebuild>("Schedule Playout Rebuild", parameters, options);
|
||||
await dialog.Result;
|
||||
}
|
||||
|
||||
private async Task<TableData<PlayoutNameViewModel>> ServerReload(TableState state)
|
||||
{
|
||||
await _mediator.Send(new SaveConfigElementByKey(ConfigElementKey.PlayoutsPageSize, state.PageSize.ToString()));
|
||||
|
||||
Reference in New Issue
Block a user