fix: upgrade modal flow

This commit is contained in:
Sean Yesmunt 2018-06-14 12:08:13 -04:00
parent de9c736703
commit 88b4a73fca
3 changed files with 6 additions and 4 deletions

View file

@ -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"

View file

@ -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()),

View file

@ -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,