Autoupgrade fixes

Fixes modal when clicking "upgrade app" from the top right menu.
Fixes double modal on autoupdate, issue https://github.com/lbryio/lbry-app/issues/1613
This commit is contained in:
Thomas Zarebczan 2018-06-19 20:50:01 -04:00
parent 3ad8feb025
commit dfd42b8e96
3 changed files with 3 additions and 6 deletions

View file

@ -113,10 +113,6 @@ document.addEventListener('click', event => {
});
const init = () => {
autoUpdater.on('update-downloaded', () => {
app.store.dispatch(doAutoUpdate());
});
autoUpdater.on('error', error => {
// eslint-disable-next-line no-console
console.error(error.message);

View file

@ -30,6 +30,7 @@ class ModalAutoUpdateConfirm extends React.PureComponent {
<p className="meta text-center">
{__('Want to know what has changed?')} See the{' '}
<Button
button="link"
label={__('release notes')}
href="https://github.com/lbryio/lbry-app/releases"
/>.

View file

@ -5564,9 +5564,9 @@ lazy-val@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/lazy-val/-/lazy-val-1.0.3.tgz#bb97b200ef00801d94c317e29dc6ed39e31c5edc"
lbry-redux@lbryio/lbry-redux#be7a07302aab0c5fc40f8c76cff524c7bce327a2:
lbry-redux@lbryio/lbry-redux#201d78b68a329065ee5d2a03bfb1607ea0666588:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/be7a07302aab0c5fc40f8c76cff524c7bce327a2"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/201d78b68a329065ee5d2a03bfb1607ea0666588"
dependencies:
proxy-polyfill "0.1.6"
reselect "^3.0.0"