Enhance channel settings to include icon image support for IPTV
Updated the Channel and related DTOs to incorporate an optional IconImageId property, allowing for the specification of a channel icon for external IPTV players. Modified the UpdateChannelSettings command and its handler to accommodate this new property. Adjusted frontend components to manage the icon image, including selection and display functionality. Updated localization files to support new UI elements related to the IPTV icon. This enhancement improves the user experience by providing a visual representation of channels in IPTV applications.
This commit is contained in:
@@ -61,7 +61,7 @@ public class ValidatorTests
|
||||
{
|
||||
var v = new UpdateChannelSettingsCommandValidator();
|
||||
|
||||
var good = new UpdateChannelSettingsCommand(Guid.NewGuid(), "Name", true, null);
|
||||
var good = new UpdateChannelSettingsCommand(Guid.NewGuid(), "Name", true, null, null);
|
||||
Assert.True(v.Validate(good).IsValid);
|
||||
|
||||
Assert.False(v.Validate(good with { Name = "" }).IsValid);
|
||||
|
||||
Reference in New Issue
Block a user