Test updates4b #7639

Closed
jessopb wants to merge 13 commits from test-updates4b into master
3 changed files with 7 additions and 4 deletions
Showing only changes of commit d3ed068911 - Show all commits

View file

@ -433,6 +433,10 @@ autoUpdater.on('update-downloaded', () => {
} }
}); });
autoUpdater.on('update-available', () => {
updateState = UPDATE_STATE_UPDATES_FOUND;
});
autoUpdater.on('update-not-available', () => { autoUpdater.on('update-not-available', () => {
updateState = UPDATE_STATE_NO_UPDATES_FOUND; updateState = UPDATE_STATE_NO_UPDATES_FOUND;
}); });

View file

@ -7,7 +7,6 @@ import { selectUnclaimedRewards } from 'redux/selectors/rewards';
import { doFetchChannelListMine, doFetchCollectionListMine, doResolveUris } from 'redux/actions/claims'; import { doFetchChannelListMine, doFetchCollectionListMine, doResolveUris } from 'redux/actions/claims';
import { selectMyChannelUrls, selectMyChannelClaimIds } from 'redux/selectors/claims'; import { selectMyChannelUrls, selectMyChannelClaimIds } from 'redux/selectors/claims';
import * as SETTINGS from 'constants/settings'; import * as SETTINGS from 'constants/settings';
import * as MODALS from 'constants/modal_types';
import { selectSubscriptions } from 'redux/selectors/subscriptions'; import { selectSubscriptions } from 'redux/selectors/subscriptions';
import { import {
makeSelectClientSetting, makeSelectClientSetting,
@ -25,7 +24,7 @@ import {
import { doGetWalletSyncPreference, doSetLanguage } from 'redux/actions/settings'; import { doGetWalletSyncPreference, doSetLanguage } from 'redux/actions/settings';
import { doSyncLoop } from 'redux/actions/sync'; import { doSyncLoop } from 'redux/actions/sync';
import { import {
doOpenModal, doDownloadUpgradeRequested,
doSignIn, doSignIn,
doGetAndPopulatePreferences, doGetAndPopulatePreferences,
doSetActiveChannel, doSetActiveChannel,
@ -61,7 +60,7 @@ const perform = (dispatch) => ({
fetchCollectionListMine: () => dispatch(doFetchCollectionListMine()), fetchCollectionListMine: () => dispatch(doFetchCollectionListMine()),
setLanguage: (language) => dispatch(doSetLanguage(language)), setLanguage: (language) => dispatch(doSetLanguage(language)),
signIn: () => dispatch(doSignIn()), signIn: () => dispatch(doSignIn()),
requestDownloadUpgrade: () => dispatch(doOpenModal(MODALS.UPGRADE)), requestDownloadUpgrade: () => dispatch(doDownloadUpgradeRequested()),
updatePreferences: () => dispatch(doGetAndPopulatePreferences()), updatePreferences: () => dispatch(doGetAndPopulatePreferences()),
getWalletSyncPref: () => dispatch(doGetWalletSyncPreference()), getWalletSyncPref: () => dispatch(doGetWalletSyncPreference()),
syncLoop: (noInterval) => dispatch(doSyncLoop(noInterval)), syncLoop: (noInterval) => dispatch(doSyncLoop(noInterval)),

View file

@ -40,7 +40,7 @@ const ModalAutoUpdateDownloaded = (props: Props) => {
onAborted={handleAbort} onAborted={handleAbort}
> >
<LastReleaseChanges /> <LastReleaseChanges />
{errorWhileUpdating && <p>__('There was an error while updating. Please try again.')</p>} {errorWhileUpdating && <p>{__('There was an error while updating. Please try again.')}</p>}
</Modal> </Modal>
); );
}; };