|
|
@ -11,23 +11,22 @@ const {Title, Text, Paragraph} = Typography;
|
|
|
|
|
|
|
|
|
|
|
|
class ReleaseView extends React.Component {
|
|
|
|
class ReleaseView extends React.Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
|
|
|
|
const {app, release} = this.props;
|
|
|
|
const config = this.props.context;
|
|
|
|
const config = this.props.context;
|
|
|
|
const app = this.props.app;
|
|
|
|
|
|
|
|
const release = (app !== null) ? app.applicationReleases[0] : null;
|
|
|
|
|
|
|
|
const {lifecycle, currentLifecycleStatus} = this.props;
|
|
|
|
const {lifecycle, currentLifecycleStatus} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
if (release == null || lifecycle == null) {
|
|
|
|
if (release == null || lifecycle == null) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const {isAppUpdatable, isAppInstallable} = lifecycle[currentLifecycleStatus];
|
|
|
|
const {isAppUpdatable, isAppInstallable} = lifecycle[currentLifecycleStatus];
|
|
|
|
|
|
|
|
|
|
|
|
console.log(isAppInstallable, isAppUpdatable);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const platform = app.deviceType;
|
|
|
|
const platform = app.deviceType;
|
|
|
|
const defaultPlatformIcons = config.defaultPlatformIcons;
|
|
|
|
const defaultPlatformIcons = config.defaultPlatformIcons;
|
|
|
|
let icon = defaultPlatformIcons.default.icon;
|
|
|
|
let icon = defaultPlatformIcons.default.icon;
|
|
|
|
let color = defaultPlatformIcons.default.color;
|
|
|
|
let color = defaultPlatformIcons.default.color;
|
|
|
|
let theme = defaultPlatformIcons.default.theme;
|
|
|
|
let theme = defaultPlatformIcons.default.theme;
|
|
|
|
|
|
|
|
|
|
|
|
if (defaultPlatformIcons.hasOwnProperty(platform)) {
|
|
|
|
if (defaultPlatformIcons.hasOwnProperty(platform)) {
|
|
|
|
icon = defaultPlatformIcons[platform].icon;
|
|
|
|
icon = defaultPlatformIcons[platform].icon;
|
|
|
|
color = defaultPlatformIcons[platform].color;
|
|
|
|
color = defaultPlatformIcons[platform].color;
|
|
|
|