Added UpdateMechanismMessage to allow package maintainers provide custom message

This commit is contained in:
Taloth Saldono
2020-05-03 17:28:18 +02:00
committed by ta264
parent e9c1506e46
commit bc88a26c80
4 changed files with 19 additions and 5 deletions
@@ -13,13 +13,17 @@ import Updates from './Updates';
function createMapStateToProps() {
return createSelector(
(state) => state.app.version,
createSystemStatusSelector(),
(state) => state.system.updates,
(state) => state.settings.general,
createUISettingsSelector(),
createCommandExecutingSelector(commandNames.APPLICATION_UPDATE),
createSystemStatusSelector(),
(
currentVersion,
status,
updates,
generalSettings,
uiSettings,
isInstallingUpdate,
systemStatus
@@ -39,6 +43,8 @@ function createMapStateToProps() {
items,
isInstallingUpdate,
isDocker: systemStatus.isDocker,
updateMechanism: generalSettings.item.updateMechanism,
updateMechanismMessage: status.packageUpdateMechanismMessage,
shortDateFormat: uiSettings.shortDateFormat
};
}