mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 13:32:17 -07:00
New: Server Side UI Filtering, Error Boundaries (#501)
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
a95191dc3b
commit
64a8d02f77
110 changed files with 1564 additions and 431 deletions
|
@ -70,9 +70,15 @@ class TrackFileEditorModalContent extends Component {
|
|||
getSelectedIds = () => {
|
||||
const selectedIds = getSelectedIds(this.state.selectedState);
|
||||
|
||||
return _.uniq(_.map(selectedIds, (id) => {
|
||||
return _.find(this.props.items, { id }).trackFileId;
|
||||
}));
|
||||
return selectedIds.reduce((acc, id) => {
|
||||
const matchingItem = this.props.items.find((item) => item.id === id);
|
||||
|
||||
if (matchingItem && !acc.includes(matchingItem.trackFileID)) {
|
||||
acc.push(matchingItem.trackFileID);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -5,7 +5,7 @@ import Label from 'Components/Label';
|
|||
import TableRow from 'Components/Table/TableRow';
|
||||
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||
import TableSelectCell from 'Components/Table/Cells/TableSelectCell';
|
||||
import EpisodeQuality from 'Album/EpisodeQuality';
|
||||
import TrackQuality from 'Album/TrackQuality';
|
||||
import styles from './TrackFileEditorRow';
|
||||
|
||||
function TrackFileEditorRow(props) {
|
||||
|
@ -42,7 +42,7 @@ function TrackFileEditorRow(props) {
|
|||
</TableRowCell>
|
||||
|
||||
<TableRowCell>
|
||||
<EpisodeQuality
|
||||
<TrackQuality
|
||||
quality={quality}
|
||||
/>
|
||||
</TableRowCell>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue