Browse Source

fix changing playout source from mirror to generated (#2402)

pull/2403/head
Jason Dove 4 months ago committed by GitHub
parent
commit
388623f82e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ErsatzTV/Pages/ChannelEditor.razor

2
ErsatzTV/Pages/ChannelEditor.razor

@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
<MudSelect @bind-Value="_model.PlayoutSource"
For="@(() => _model.PlayoutSource)"
HelperText="Controls the source of the channel's content. This cannot be changed when the channel already has a playout."
Disabled="@(_channels.Any(c => c.Id == Id && c.PlayoutCount > 0))">
Disabled="@(_channels.Any(c => c.PlayoutSource is ChannelPlayoutSource.Generated && c.Id == Id && c.PlayoutCount > 0))">
<MudSelectItem Value="@(ChannelPlayoutSource.Generated)">Generated</MudSelectItem>
<MudSelectItem Value="@(ChannelPlayoutSource.Mirror)">Mirror</MudSelectItem>
</MudSelect>

Loading…
Cancel
Save