|
|
@ -12,11 +12,18 @@ import Updates from './Updates';
|
|
|
|
|
|
|
|
|
|
|
|
function createMapStateToProps() {
|
|
|
|
function createMapStateToProps() {
|
|
|
|
return createSelector(
|
|
|
|
return createSelector(
|
|
|
|
|
|
|
|
(state) => state.app.version,
|
|
|
|
(state) => state.system.updates,
|
|
|
|
(state) => state.system.updates,
|
|
|
|
(state) => state.settings.general,
|
|
|
|
(state) => state.settings.general,
|
|
|
|
createUISettingsSelector(),
|
|
|
|
createUISettingsSelector(),
|
|
|
|
createCommandExecutingSelector(commandNames.APPLICATION_UPDATE),
|
|
|
|
createCommandExecutingSelector(commandNames.APPLICATION_UPDATE),
|
|
|
|
(updates, generalSettings, uiSettings, isInstallingUpdate) => {
|
|
|
|
(
|
|
|
|
|
|
|
|
currentVersion,
|
|
|
|
|
|
|
|
updates,
|
|
|
|
|
|
|
|
generalSettings,
|
|
|
|
|
|
|
|
uiSettings,
|
|
|
|
|
|
|
|
isInstallingUpdate
|
|
|
|
|
|
|
|
) => {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
error: updatesError,
|
|
|
|
error: updatesError,
|
|
|
|
items
|
|
|
|
items
|
|
|
@ -26,6 +33,7 @@ function createMapStateToProps() {
|
|
|
|
const isPopulated = updates.isPopulated && generalSettings.isPopulated;
|
|
|
|
const isPopulated = updates.isPopulated && generalSettings.isPopulated;
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
currentVersion,
|
|
|
|
isFetching,
|
|
|
|
isFetching,
|
|
|
|
isPopulated,
|
|
|
|
isPopulated,
|
|
|
|
updatesError,
|
|
|
|
updatesError,
|
|
|
|