From: Daniel Karbach Date: Sun, 12 Mar 2023 21:33:08 +0000 (+0100) Subject: show comment for episode X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4fc3b543c9be9d045d7b9ea91dcaab46270131a9;p=alttp.git show comment for episode --- diff --git a/resources/js/components/episodes/Item.js b/resources/js/components/episodes/Item.js index c911bc3..3545e77 100644 --- a/resources/js/components/episodes/Item.js +++ b/resources/js/components/episodes/Item.js @@ -26,7 +26,7 @@ const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => { const classNames = [ 'episodes-item', 'd-flex', - 'align-items-start', + 'align-items-stretch', 'my-3', 'p-2', 'border', @@ -52,7 +52,7 @@ const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => {
{t('schedule.startTime', { date: new Date(episode.start) })}
-
+
{episode.title ? @@ -60,9 +60,9 @@ const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => { {episode.title}
: null} - {episode.event ? -
- {episode.event.title} + {episode.comment ? +
+ {episode.comment}
: null}
@@ -96,7 +96,14 @@ const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => { {(episode.crew && episode.crew.length) || canApplyForEpisode(user, episode, 'commentary') || canApplyForEpisode(user, episode, 'tracking') ? - +
+ +
+ : null} + {episode.event ? +
+ {episode.event.title} +
: null}
; @@ -106,6 +113,7 @@ Item.propTypes = { episode: PropTypes.shape({ channels: PropTypes.arrayOf(PropTypes.shape({ })), + comment: PropTypes.string, crew: PropTypes.arrayOf(PropTypes.shape({ })), event: PropTypes.shape({