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
|
@ -18,11 +18,11 @@ function getHeaderTitle(eventType) {
|
|||
case 'downloadFailed':
|
||||
return 'Download Failed';
|
||||
case 'downloadFolderImported':
|
||||
return 'Episode Imported';
|
||||
return 'Track Imported';
|
||||
case 'trackFileDeleted':
|
||||
return 'Episode File Deleted';
|
||||
return 'Track File Deleted';
|
||||
case 'trackFileRenamed':
|
||||
return 'Episode File Renamed';
|
||||
return 'Track File Renamed';
|
||||
default:
|
||||
return 'Unknown';
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -37,6 +37,11 @@ export const defaultState = {
|
|||
label: 'Album Title',
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'trackTitle',
|
||||
label: 'Track Title',
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'language',
|
||||
label: 'Language',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue