Fix for History Not Showing

pull/94/head
Qstick 7 years ago
parent cbcccf0d9d
commit bd3bd9a378

@ -38,9 +38,9 @@ function getTooltip(eventType, data) {
case 'grabbed': case 'grabbed':
return `Album grabbed from ${data.indexer} and sent to ${data.downloadClient}`; return `Album grabbed from ${data.indexer} and sent to ${data.downloadClient}`;
case 'seriesFolderImported': case 'seriesFolderImported':
return 'Album imported from artist folder'; return 'Track imported from artist folder';
case 'downloadFolderImported': case 'downloadFolderImported':
return 'Album downloaded successfully and picked up from download client'; return 'Track downloaded successfully and picked up from download client';
case 'downloadFailed': case 'downloadFailed':
return 'Album download failed'; return 'Album download failed';
case 'trackFileDeleted': case 'trackFileDeleted':

@ -13,10 +13,10 @@ function createMapStateToProps() {
createArtistSelector(), createArtistSelector(),
createEpisodeSelector(), createEpisodeSelector(),
createUISettingsSelector(), createUISettingsSelector(),
(artist, episode, uiSettings) => { (artist, album, uiSettings) => {
return { return {
artist, artist,
episode, album,
shortDateFormat: uiSettings.shortDateFormat, shortDateFormat: uiSettings.shortDateFormat,
timeFormat: uiSettings.timeFormat timeFormat: uiSettings.timeFormat
}; };

@ -4,10 +4,10 @@ import episodeEntities from 'Episode/episodeEntities';
function createEpisodeSelector() { function createEpisodeSelector() {
return createSelector( return createSelector(
(state, { episodeId }) => episodeId, (state, { albumId }) => albumId,
(state, { episodeEntity = episodeEntities.EPISODES }) => _.get(state, episodeEntity, { items: [] }), (state, { episodeEntity = episodeEntities.EPISODES }) => _.get(state, episodeEntity, { items: [] }),
(episodeId, episodes) => { (albumId, episodes) => {
return _.find(episodes.items, { id: episodeId }); return _.find(episodes.items, { id: albumId });
} }
); );
} }

Loading…
Cancel
Save