mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Log TrackImport and TrackFileDeleted to History
This commit is contained in:
parent
ab9a9232cf
commit
729d1142b0
12 changed files with 94 additions and 44 deletions
|
@ -56,6 +56,7 @@ class HistoryRow extends Component {
|
|||
albumId,
|
||||
artist,
|
||||
album,
|
||||
track,
|
||||
language,
|
||||
quality,
|
||||
eventType,
|
||||
|
@ -121,6 +122,14 @@ class HistoryRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'trackTitle') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{track.title}
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'language') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
|
@ -220,6 +229,7 @@ HistoryRow.propTypes = {
|
|||
albumId: PropTypes.number,
|
||||
artist: PropTypes.object.isRequired,
|
||||
album: PropTypes.object,
|
||||
track: PropTypes.object,
|
||||
language: PropTypes.object.isRequired,
|
||||
quality: PropTypes.object.isRequired,
|
||||
eventType: PropTypes.string.isRequired,
|
||||
|
@ -234,4 +244,10 @@ HistoryRow.propTypes = {
|
|||
onMarkAsFailedPress: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
HistoryRow.defaultProps = {
|
||||
track: {
|
||||
title: ''
|
||||
}
|
||||
};
|
||||
|
||||
export default HistoryRow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue