[Display window if dependencies are required] [Display window if UI upgrade is available]
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user