Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.0 KiB

<MudDialog>
<DialogContent>
<MudContainer Class="mb-6">
<MudText>
Edit the playout's external json file
</MudText>
</MudContainer>
<MudTextField Label="External Json File" @bind-Value="_externalJsonFile"/>
</DialogContent>
<DialogActions>
<MudButton OnClick="@Cancel" ButtonType="ButtonType.Reset">Cancel</MudButton>
<MudButton Color="Color.Primary" Variant="Variant.Filled" Disabled="@(string.IsNullOrWhiteSpace(_externalJsonFile))" OnClick="@Submit">
Save Changes
</MudButton>
</DialogActions>
</MudDialog>
@code {
[Parameter]
public string ExternalJsonFile { get; set; }
[CascadingParameter]
IMudDialogInstance MudDialog { get; set; }
private string _externalJsonFile;
protected override void OnParametersSet() => _externalJsonFile = ExternalJsonFile;
private void Submit() => MudDialog.Close(DialogResult.Ok(_externalJsonFile));
private void Cancel() => MudDialog.Cancel();
}