diff --git a/src/redux/actions/install_actions.js b/src/redux/actions/install_actions.js index c3672e7..fb7612e 100644 --- a/src/redux/actions/install_actions.js +++ b/src/redux/actions/install_actions.js @@ -13,6 +13,7 @@ import { } from './release_version_actions'; import { setApplicationReady, + showWindow, shutdownApplication } from './common_actions'; @@ -41,6 +42,9 @@ export const checkInstalled = (dependencies, version) => { dispatch(setReleaseUpgradeAvailable(upgradeAvailable)); dispatch(setMissingDependencies(result.Dependencies)); dispatch(setAllowDownload(true)); + if (result.Dependencies && (result.Dependencies.length > 0)) { + dispatch(showWindow()); + } }; if (result.Success) { diff --git a/src/redux/actions/release_version_actions.js b/src/redux/actions/release_version_actions.js index 4c8fc3b..a9bf704 100644 --- a/src/redux/actions/release_version_actions.js +++ b/src/redux/actions/release_version_actions.js @@ -2,7 +2,10 @@ import axios from 'axios'; import * as Constants from '../../constants'; import {createAction} from 'redux-starter-kit'; import {notifyError} from './error_actions'; -import {setApplicationReady} from './common_actions'; +import { + setApplicationReady, + showWindow +} from './common_actions'; export const CLEAR_UI_UPGRADE = 'relver/clearUIUpgrade'; export const clearUIUpgrade = () => { @@ -27,6 +30,9 @@ export const detectUIUpgrade = () => { (data.Versions[appPlatform].length > 0) && (data.Versions[appPlatform][0] !== version)) { dispatch(setUIUpgradeData(data.Locations[appPlatform][data.Versions[appPlatform][0]], data.Versions[appPlatform][0])); + if (!state.relver.UpgradeDismissed) { + dispatch(showWindow()); + } } else { dispatch(clearUIUpgrade()); }