1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

QualityDefinition UI fixes

This commit is contained in:
Mark McDowall 2019-04-28 00:21:00 -07:00
parent 06c1f376bc
commit f68c5cb4f7
2 changed files with 6 additions and 6 deletions

View File

@ -141,10 +141,10 @@ class QualityDefinition extends Component {
} = this.state;
const minBytes = minSize * 1024 * 1024;
const minSixty = `${formatBytes(minBytes * 60, 2)}/h`;
const minSixty = `${formatBytes(minBytes * 60)}/h`;
const maxBytes = maxSize && maxSize * 1024 * 1024;
const maxSixty = maxBytes ? `${formatBytes(maxBytes * 60, 2)}/h` : 'Unlimited';
const maxSixty = maxBytes ? `${formatBytes(maxBytes * 60)}/h` : 'Unlimited';
return (
<div className={styles.qualityDefinition}>

View File

@ -12,9 +12,9 @@ function QualityDefinitionLimits(props) {
return <div>{message}</div>;
}
const thirty = formatBytes(bytes * 30, 2);
const fourtyFive = formatBytes(bytes * 45, 2);
const sixty = formatBytes(bytes * 60, 2);
const thirty = formatBytes(bytes * 30);
const fourtyFive = formatBytes(bytes * 45);
const sixty = formatBytes(bytes * 60);
return (
<div>
@ -26,7 +26,7 @@ function QualityDefinitionLimits(props) {
}
QualityDefinitionLimits.propTypes = {
bytes: PropTypes.number.isRequired,
bytes: PropTypes.number,
message: PropTypes.string.isRequired
};