diff --git a/ErsatzTV/Pages/BlockEditor.razor b/ErsatzTV/Pages/BlockEditor.razor
index ceb5126b..012b37b5 100644
--- a/ErsatzTV/Pages/BlockEditor.razor
+++ b/ErsatzTV/Pages/BlockEditor.razor
@@ -27,7 +27,7 @@
-
+
@@ -159,7 +159,7 @@
Collection
-
@@ -176,7 +176,7 @@
Multi Collection
-
@@ -193,7 +193,7 @@
Smart Collection
-
@@ -210,7 +210,7 @@
Television Show
-
@@ -227,7 +227,7 @@
Television Season
-
diff --git a/ErsatzTV/Pages/PlaylistEditor.razor b/ErsatzTV/Pages/PlaylistEditor.razor
index 445b1373..27b67ccf 100644
--- a/ErsatzTV/Pages/PlaylistEditor.razor
+++ b/ErsatzTV/Pages/PlaylistEditor.razor
@@ -9,216 +9,253 @@
@inject ISnackbar Snackbar
@inject IMediator Mediator
-
-Edit Playlist
-
-
-
-
-
-
-
-
- Add Playlist Item
-
-
- Save Changes
-
-
- Preview Playlist Playout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Item Type
- Item
- Playback Order
- Play All
- Show In EPG
-
-
-
-
-
-
-
-
- @context.ItemType
-
-
-
-
- @context.ItemName
-
-
-
-
- @(context.PlaybackOrder > 0 ? context.PlaybackOrder : "")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @if (_selectedItem is not null)
- {
-
-
-
-
-
-
- Collection
- Television Show
- Television Season
- Artist
- Multi Collection
- Smart Collection
- Movie
- Episode
- Music Video
- Other Video
- Song
- Image
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Collection)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.MultiCollection)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.SmartCollection)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.TelevisionShow)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.TelevisionSeason)
- {
-
-
-
- Only the first 20 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Artist)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
- @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Movie)
- {
-
-
-
- Only the first 10 items are shown
-
-
-
- }
-
-
+
+
+
+
+ Save Playlist
+
+
+ Add Playlist Item
+
+
+ Preview Playlist Playout
+
+
+
+
+
+
+
+ Playlist
+
+
+
+ Name
+
+
+
+ Playlist Items
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Item Type
+ Item
+ Playback Order
+ Play All
+ Show In EPG
+
+
+
+
+
+ @context.ItemType
+
+
+
+
+ @context.ItemName
+
+
+
+
+ @(context.PlaybackOrder > 0 ? context.PlaybackOrder : "")
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @if (_selectedItem is not null)
+ {
+ Playlist Item
+
+
+
+ Collection Type
+
+
+ Collection
+ Television Show
+ Television Season
+ Artist
+ Multi Collection
+ Smart Collection
+ Movie
+ Episode
+ Music Video
+ Other Video
+ Song
+ Image
+
+
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Collection)
+ {
+
+
+ Collection
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.MultiCollection)
+ {
+
+
+ Multi Collection
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.SmartCollection)
+ {
+
+
+ Smart Collection
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.TelevisionShow)
+ {
+
+
+ Television Show
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.TelevisionSeason)
+ {
+
+
+ Television Season
+
+
+
+
+ Only the first 20 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Artist)
+ {
+
+
+ Artist
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+ @if (_selectedItem.CollectionType == ProgramScheduleItemCollectionType.Movie)
+ {
+
+
+ Movie
+
+
+
+
+ Only the first 10 items are shown
+
+
+
+
+ }
+
+
+ Playback Order
+
+
@switch (_selectedItem.CollectionType)
@@ -251,36 +288,35 @@
break;
}
-
-
-
-
- }
-
-@if (_previewItems != null)
-{
-
-
- Playlist Playout Preview
-
-
- Start
- Finish
- Media Item
- Duration
-
-
- @context.Start.ToString(@"hh\:mm\:ss")
- @context.Finish.ToString(@"hh\:mm\:ss")
- @context.Title
- @context.Duration
-
-
-}
-
+
+ }
+ else if (_previewItems is not null)
+ {
+ Preview
+
+
+
+ Playlist Playout Preview
+
+
+ Start
+ Finish
+ Media Item
+ Duration
+
+
+ @context.Start.ToString(@"hh\:mm\:ss")
+ @context.Finish.ToString(@"hh\:mm\:ss")
+ @context.Title
+ @context.Duration
+
+
+ }
+
+
+
@code {
private readonly CancellationTokenSource _cts = new();
@@ -511,4 +547,6 @@
private static void UpdateEPG(PlaylistItemEditViewModel context, bool includeInProgramGuide) => context.IncludeInProgramGuide = includeInProgramGuide;
private static void UpdatePlayAll(PlaylistItemEditViewModel context, bool playAll) => context.PlayAll = playAll;
+
+ private string SelectedRowClassFunc(PlaylistItemEditViewModel element, int rowNumber) => _selectedItem != null && _selectedItem == element ? "selected" : string.Empty;
}
\ No newline at end of file