diff --git a/dashboard-ui/reports.html b/dashboard-ui/reports.html index 88a178ba24..5ff8d82c8e 100644 --- a/dashboard-ui/reports.html +++ b/dashboard-ui/reports.html @@ -74,8 +74,8 @@
- +

diff --git a/dashboard-ui/scripts/reports.js b/dashboard-ui/scripts/reports.js index a0a1c6e42e..6fc52a8393 100644 --- a/dashboard-ui/scripts/reports.js +++ b/dashboard-ui/scripts/reports.js @@ -8,7 +8,8 @@ IncludeItemTypes: "Movie", HasQueryLimit: true, GroupBy: "None", - ReportView: "ReportData" + ReportView: "ReportData", + DisplayType: "Screen", }; function getTable(result) { @@ -21,19 +22,21 @@ result.Headers.map(function (header) { var cellHtml = ''; - if (header.SortField) { - cellHtml += ''; - } + if (header.ShowHeaderLabel) { + if (header.SortField) { + cellHtml += ''; + } - cellHtml += (header.Name || ' '); - if (header.SortField) { - cellHtml += ''; - if (header.SortField === defaultSortBy) { + cellHtml += (header.Name || ' '); + if (header.SortField) { + cellHtml += ''; + if (header.SortField === defaultSortBy) { - if (query.SortOrder === "Descending") { - cellHtml += ''; - } else { - cellHtml += ''; + if (query.SortOrder === "Descending") { + cellHtml += ''; + } else { + cellHtml += ''; + } } } } @@ -125,6 +128,49 @@ html += '
'; } break; + case "LockDataImage": + if (rRow.HasLockData) { + html += ''; + } + break; + case "UnidentifiedImage": + if (rRow.IsUnidentified) { + html += '
'; + } + break; + case "TagsPrimaryImage": + if (!rRow.HasImageTagsPrimary) { + html += ''; + } + break; + case "TagsBackdropImage": + if (!rRow.HasImageTagsBackdrop) { + if (rRow.RowType !== "Episode" && rRow.RowType !== "Season" && rRow.MediaType !== "Audio" && rRow.RowType !== "TvChannel" && rRow.RowType !== "MusicAlbum") { + html += ''; + } + } + break; + case "TagsLogoImage": + if (!rRow.HasImageTagsLogo) { + if (rRow.RowType === "Movie" || rRow.RowType === "Trailer" || rRow.RowType === "Series" || rRow.RowType === "MusicArtist" || rRow.RowType === "BoxSet") { + html += ''; + } + } + break; + case "UserPrimaryImage": + if (rRow.UserId) { + var userImage = ApiClient.getUserImageUrl(rRow.UserId, { + height: 24, + type: 'Primary' + + }); + if (userImage) { + html += ''; + } else { + html += ''; + } + } + break; case "StatusImage": if (rRow.HasLockData) { html += ''; @@ -226,7 +272,6 @@ var url = ApiClient.getUrl("Reports/Items/Download", query); if (url) { - e.preventDefault(); //stop the browser from following window.location.href = url; } } @@ -244,7 +289,7 @@ $('#selectReportGroup', page).append(''); result.map(function (header) { - if (header.Visible && header.CanGroup) { + if ((header.DisplayType === "Screen" || header.DisplayType === "ScreenExport") && header.CanGroup) { if (header.FieldName.length > 0) { var option = ''; $('#selectReportGroup', page).append(option); @@ -479,7 +524,6 @@ var filtersLoaded; function reloadFiltersIfNeeded(page) { - if (!filtersLoaded) { filtersLoaded = true; @@ -1023,7 +1067,7 @@ var delimiter = '|'; result.map(function (item) { - if (item.Visible) + if ((item.DisplayType === "Screen" || item.DisplayType === "ScreenExport")) filters = filters ? (filters + delimiter + item.FieldName) : item.FieldName; }); if (!itemQuery.ReportColumns) diff --git a/dashboard-ui/strings/html/server.json b/dashboard-ui/strings/html/server.json index 28e4c946c3..98f86e3b5f 100644 --- a/dashboard-ui/strings/html/server.json +++ b/dashboard-ui/strings/html/server.json @@ -1494,5 +1494,11 @@ "ImportFavoriteChannelsHelp": "If enabled, only channels that are marked as favorite on the tuner device will be imported.", "ButtonRepeat": "Repeat", "LabelEnableThisTuner": "Enable this tuner", - "LabelEnableThisTunerHelp": "Uncheck to prevent importing channels from this tuner." + "LabelEnableThisTunerHelp": "Uncheck to prevent importing channels from this tuner.", + "HeaderLocked": "Locked", + "HeaderUnidentified": "Unidentified", + "HeaderImagePrimary": "Primary", + "HeaderImageBackdrop": "Backdrop", + "HeaderImageLogo": "Logo", + "HeaderUserPrimaryImage": "User Image" }