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':
return `Album grabbed from ${data.indexer} and sent to ${data.downloadClient}`;
case 'seriesFolderImported':
return 'Album imported from artist folder';
return 'Track imported from artist folder';
case 'downloadFolderImported':
return 'Album downloaded successfully and picked up from download client';
return 'Track downloaded successfully and picked up from download client';
case 'downloadFailed':
return 'Album download failed';
case 'trackFileDeleted':

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

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

Loading…
Cancel
Save