1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

New: Show updated Custom Format Score in history

This commit is contained in:
Mark McDowall
2022-12-12 23:48:48 -08:00
committed by Mark McDowall
parent 68d026479f
commit 6dcfc661a1
3 changed files with 12 additions and 3 deletions
@@ -69,6 +69,7 @@ class EpisodeHistoryRow extends Component {
quality,
qualityCutoffNotMet,
customFormats,
customFormatScore,
date,
data
} = this.props;
@@ -125,7 +126,7 @@ class EpisodeHistoryRow extends Component {
<TableRowCell className={styles.customFormatScore}>
<Tooltip
anchor={
formatPreferredWordScore(data.customFormatScore, customFormats.length)
formatPreferredWordScore(customFormatScore, customFormats.length)
}
tooltip={<EpisodeFormats formats={customFormats} />}
position={tooltipPositions.BOTTOM}
@@ -165,6 +166,7 @@ EpisodeHistoryRow.propTypes = {
quality: PropTypes.object.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),
customFormatScore: PropTypes.number.isRequired,
date: PropTypes.string.isRequired,
data: PropTypes.object.isRequired,
onMarkAsFailedPress: PropTypes.func.isRequired