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

This commit is contained in:
Jason Dove
2025-09-09 17:19:00 +00:00
committed by GitHub
parent 6b275f8a13
commit 388623f82e
+1 -1
View File
@@ -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>