fix a couple ui errors (#2551)

This commit is contained in:
Jason Dove
2025-10-20 10:54:43 -05:00
committed by GitHub
parent d4353f6d42
commit fcce53a3df
4 changed files with 8 additions and 5 deletions
+2
View File
@@ -42,6 +42,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix QSV capability detection on Linux using non-drm displays (e.g. wayland)
- Fix playlist filtering bug that made HLS Segmenter more likely to fail when streaming for multiple hours
- Fix NVIDIA overlaying text subtitles and permanent watermark on 10-bit content
- Fix UI error adding deco
- Fix UI error editing watermarks and graphics elements on blocks
### Changed
- Do not use graphics engine for single, permanent watermark
@@ -30,6 +30,7 @@ public class CreateDecoHandler(IDbContextFactory<TvContext> dbContextFactory)
{
DecoGroupId = request.DecoGroupId,
Name = name,
BreakContent = [],
DecoWatermarks = [],
DecoGraphicsElements = []
});
@@ -10,4 +10,4 @@ public record ReplaceBlockItems(
int Minutes,
BlockStopScheduling StopScheduling,
List<ReplaceBlockItem> Items)
: IRequest<Either<BaseError, List<BlockItemViewModel>>>;
: IRequest<Either<BaseError, Unit>>;
@@ -8,9 +8,9 @@ using Microsoft.EntityFrameworkCore;
namespace ErsatzTV.Application.Scheduling;
public class ReplaceBlockItemsHandler(IDbContextFactory<TvContext> dbContextFactory)
: IRequestHandler<ReplaceBlockItems, Either<BaseError, List<BlockItemViewModel>>>
: IRequestHandler<ReplaceBlockItems, Either<BaseError, Unit>>
{
public async Task<Either<BaseError, List<BlockItemViewModel>>> Handle(
public async Task<Either<BaseError, Unit>> Handle(
ReplaceBlockItems request,
CancellationToken cancellationToken)
{
@@ -19,7 +19,7 @@ public class ReplaceBlockItemsHandler(IDbContextFactory<TvContext> dbContextFact
return await validation.Apply(ps => Persist(dbContext, request, ps, cancellationToken));
}
private static async Task<List<BlockItemViewModel>> Persist(
private static async Task<Unit> Persist(
TvContext dbContext,
ReplaceBlockItems request,
Block block,
@@ -41,7 +41,7 @@ public class ReplaceBlockItemsHandler(IDbContextFactory<TvContext> dbContextFact
// await _channel.WriteAsync(new BuildPlayout(playout.Id, PlayoutBuildMode.Refresh));
// }
return block.Items.Map(Mapper.ProjectToViewModel).ToList();
return Unit.Default;
}
private static BlockItem BuildItem(Block block, int index, ReplaceBlockItem item)