Fixed: Highlight currently install version of Lidarr in Updates

This commit is contained in:
Qstick
2019-04-06 22:50:53 -04:00
parent 5643923299
commit 11eaa58c1c
3 changed files with 26 additions and 4 deletions
@@ -12,11 +12,18 @@ import Updates from './Updates';
function createMapStateToProps() {
return createSelector(
(state) => state.app.version,
(state) => state.system.updates,
createUISettingsSelector(),
createCommandExecutingSelector(commandNames.APPLICATION_UPDATE),
createSystemStatusSelector(),
(updates, uiSettings, isInstallingUpdate, systemStatus) => {
(
currentVersion,
updates,
uiSettings,
isInstallingUpdate,
systemStatus
) => {
const {
isFetching,
isPopulated,
@@ -25,6 +32,7 @@ function createMapStateToProps() {
} = updates;
return {
currentVersion,
isFetching,
isPopulated,
error,