1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 00:09:37 +02:00

New: Show CustomFormats on Interactive Search Results

This commit is contained in:
Qstick 2019-10-18 21:11:55 -04:00
parent 02efc655f9
commit 0039c1c393
4 changed files with 43 additions and 0 deletions

View File

@ -60,6 +60,12 @@ const columns = [
isSortable: true,
isVisible: true
},
{
name: 'customFormat',
label: 'Formats',
isSortable: true,
isVisible: true
},
{
name: 'rejections',
label: React.createElement(Icon, { name: icons.DANGER }),

View File

@ -11,6 +11,7 @@
}
.quality,
.customFormat,
.language {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
}

View File

@ -15,6 +15,7 @@ import ProtocolLabel from 'Activity/Queue/ProtocolLabel';
import Peers from './Peers';
import styles from './InteractiveSearchRow.css';
import MovieQuality from 'Movie/MovieQuality';
import MovieFormats from 'Movie/MovieFormats';
import MovieLanguage from 'Movie/MovieLanguage';
function getDownloadIcon(isGrabbing, isGrabbed, grabError) {
@ -173,6 +174,12 @@ class InteractiveSearchRow extends Component {
/>
</TableRowCell>
<TableRowCell className={styles.customFormat}>
<MovieFormats
formats={quality.customFormats}
/>
</TableRowCell>
<TableRowCell className={styles.rejected}>
{
!!rejections.length &&

View File

@ -0,0 +1,29 @@
import PropTypes from 'prop-types';
import React from 'react';
import { kinds } from 'Helpers/Props';
import Label from 'Components/Label';
function MovieFormats({ formats }) {
return (
<div>
{
formats.map((format) => {
return (
<Label
key={format.id}
kind={kinds.INFO}
>
{format.name}
</Label>
);
})
}
</div>
);
}
MovieFormats.propTypes = {
formats: PropTypes.arrayOf(PropTypes.object).isRequired
};
export default MovieFormats;