fix: upgrade modal flow
This commit is contained in:
parent
de9c736703
commit
88b4a73fca
3 changed files with 6 additions and 4 deletions
|
@ -126,7 +126,7 @@
|
||||||
"yarn": "^1.3"
|
"yarn": "^1.3"
|
||||||
},
|
},
|
||||||
"lbrySettings": {
|
"lbrySettings": {
|
||||||
"lbrynetDaemonVersion": "0.20.0rc14",
|
"lbrynetDaemonVersion": "0.20.0",
|
||||||
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-daemon-vDAEMONVER-OSNAME.zip",
|
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-daemon-vDAEMONVER-OSNAME.zip",
|
||||||
"lbrynetDaemonDir": "static/daemon",
|
"lbrynetDaemonDir": "static/daemon",
|
||||||
"lbrynetDaemonFileName": "lbrynet-daemon"
|
"lbrynetDaemonFileName": "lbrynet-daemon"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React from 'react';
|
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { doDownloadUpgrade, doSkipUpgrade, doHideNotification } from 'redux/actions/app';
|
import { doHideNotification } from 'lbry-redux';
|
||||||
|
import { doDownloadUpgrade, doSkipUpgrade } from 'redux/actions/app';
|
||||||
import ModalUpgrade from './view';
|
import ModalUpgrade from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
const select = () => ({});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
downloadUpgrade: () => dispatch(doDownloadUpgrade()),
|
downloadUpgrade: () => dispatch(doDownloadUpgrade()),
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
doNotify,
|
doNotify,
|
||||||
selectNotification,
|
selectNotification,
|
||||||
MODALS,
|
MODALS,
|
||||||
|
doHideNotification,
|
||||||
} from 'lbry-redux';
|
} from 'lbry-redux';
|
||||||
import Native from 'native';
|
import Native from 'native';
|
||||||
import { doFetchRewardedContent } from 'redux/actions/content';
|
import { doFetchRewardedContent } from 'redux/actions/content';
|
||||||
|
@ -89,6 +90,7 @@ export function doDownloadUpgrade() {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.UPGRADE_DOWNLOAD_STARTED,
|
type: ACTIONS.UPGRADE_DOWNLOAD_STARTED,
|
||||||
});
|
});
|
||||||
|
dispatch(doHideNotification());
|
||||||
dispatch(
|
dispatch(
|
||||||
doNotify({
|
doNotify({
|
||||||
id: MODALS.DOWNLOADING,
|
id: MODALS.DOWNLOADING,
|
||||||
|
|
Loading…
Reference in a new issue