From 7b4f1f46945aeedce20e16a05977f8a36bb4f218 Mon Sep 17 00:00:00 2001 From: CyferShepard Date: Wed, 26 Mar 2025 21:51:14 +0200 Subject: [PATCH] ui fixes on activity table made Transcode column open the stream details modal --- .../components/activity/activity-table.jsx | 45 ++++++++++++------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/src/pages/components/activity/activity-table.jsx b/src/pages/components/activity/activity-table.jsx index 0edc57a..3cd07d7 100644 --- a/src/pages/components/activity/activity-table.jsx +++ b/src/pages/components/activity/activity-table.jsx @@ -222,24 +222,38 @@ export default function ActivityTable(props) { row = row.original; if (row.PlayMethod === "Transcode") { return ( - - {i18next.t("TRANSCODE")} - {row.TranscodingInfo ? ( - - {!row.TranscodingInfo.IsVideoDirect && ({i18next.t("VIDEO")})} - {!row.TranscodingInfo.IsAudioDirect && ({i18next.t("AUDIO")})} - - ) : ( - "" - )} - + openModal(row)} className="text-decoration-none"> + + {i18next.t("TRANSCODE")} + {row.TranscodingInfo ? ( + + {!row.TranscodingInfo.IsVideoDirect && ({i18next.t("VIDEO")})} + {!row.TranscodingInfo.IsAudioDirect && ({i18next.t("AUDIO")})} + + ) : ( + "" + )} + + ); } else if (row.PlayMethod === "DirectPlay") { - return {i18next.t("DIRECT")}; + return ( + openModal(row)} className="text-decoration-none"> + {i18next.t("DIRECT")}{" "} + + ); } else if (row.PlayMethod === "DirectStream") { - return {i18next.t("DIRECT_STREAM")}; + return ( + openModal(row)} className="text-decoration-none"> + {i18next.t("DIRECT_STREAM")}{" "} + + ); } else { - return -; + return ( + openModal(row)} className="text-decoration-none" style={{ color: "gray" }}> + - + + ); } }, }, @@ -558,7 +572,8 @@ export default function ActivityTable(props) { setModalState(false)}> - : + + {": "} {!modalData?.SeriesName ? modalData?.NowPlayingItemName : modalData?.SeriesName + " - " + modalData?.NowPlayingItemName}{" "}