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 Qstick
parent ac37285be6
commit dbc784e94b
4 changed files with 16 additions and 5 deletions
@@ -14,6 +14,7 @@ import Updates from './Updates';
function createMapStateToProps() {
return createSelector(
(state) => state.app.version,
createSystemStatusSelector(),
(state) => state.system.updates,
(state) => state.settings.general,
createUISettingsSelector(),
@@ -21,6 +22,7 @@ function createMapStateToProps() {
createCommandExecutingSelector(commandNames.APPLICATION_UPDATE),
(
currentVersion,
status,
updates,
generalSettings,
uiSettings,
@@ -45,6 +47,7 @@ function createMapStateToProps() {
isInstallingUpdate,
isDocker: systemStatus.isDocker,
updateMechanism: generalSettings.item.updateMechanism,
updateMechanismMessage: status.packageUpdateMechanismMessage,
shortDateFormat: uiSettings.shortDateFormat
};
}