1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

New: Expose subtitle title and disposition in UI

This commit is contained in:
Jendrik Weise
2024-07-22 15:50:30 +00:00
committed by Bogdan
parent ac4669dfc1
commit b062a46cbd
5 changed files with 73 additions and 6 deletions
+11 -6
View File
@@ -1,10 +1,9 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import IconButton from 'Components/Link/IconButton';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { icons } from 'Helpers/Props';
import titleCase from 'Utilities/String/titleCase';
import ExtraFileDetailsPopover from './ExtraFileDetailsPopover';
import styles from './ExtraFileRow.css';
class ExtraFileRow extends Component {
@@ -16,7 +15,9 @@ class ExtraFileRow extends Component {
const {
relativePath,
extension,
type
type,
title,
languageTags
} = this.props;
return (
@@ -43,8 +44,10 @@ class ExtraFileRow extends Component {
</TableRowCell>
<TableRowCell className={styles.actions}>
<IconButton
name={icons.INFO}
<ExtraFileDetailsPopover
type={type}
title={title}
languageTags={languageTags}
/>
</TableRowCell>
</TableRow>
@@ -57,7 +60,9 @@ ExtraFileRow.propTypes = {
id: PropTypes.number.isRequired,
extension: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
relativePath: PropTypes.string.isRequired
relativePath: PropTypes.string.isRequired,
title: PropTypes.string,
languageTags: PropTypes.arrayOf(PropTypes.string)
};
export default ExtraFileRow;