Modify the app details drawer of the APPM publisher

feature/appm-store/pbac
nipun 5 years ago
parent 88fed3e86e
commit 2961c1d21c

@ -446,7 +446,7 @@ class AppDetailsDrawer extends React.Component {
<div> <div>
<Drawer <Drawer
placement="right" placement="right"
width={640} width={this.state.drawerWidth}
closable={false} closable={false}
onClose={onClose} onClose={onClose}
visible={visible} visible={visible}
@ -498,6 +498,7 @@ class AppDetailsDrawer extends React.Component {
grid={{gutter: 16, column: 2}} grid={{gutter: 16, column: 2}}
dataSource={app.applicationReleases} dataSource={app.applicationReleases}
renderItem={release => ( renderItem={release => (
<div className="app-release-cards">
<List.Item> <List.Item>
<Link to={"apps/releases/" + release.uuid}> <Link to={"apps/releases/" + release.uuid}>
<Card className="release-card"> <Card className="release-card">
@ -521,6 +522,7 @@ class AppDetailsDrawer extends React.Component {
</Card> </Card>
</Link> </Link>
</List.Item> </List.Item>
</div>
)} )}
/> />

@ -17,7 +17,7 @@
*/ */
import React from "react"; import React from "react";
import {Form, notification, Spin,} from "antd"; import {Form, notification, Spin, Card} from "antd";
import axios from "axios"; import axios from "axios";
import {withRouter} from 'react-router-dom' import {withRouter} from 'react-router-dom'
import {withConfigContext} from "../../context/ConfigContext"; import {withConfigContext} from "../../context/ConfigContext";
@ -73,9 +73,6 @@ class AddNewReleaseFormComponent extends React.Component {
}); });
const {data, release} = releaseData; const {data, release} = releaseData;
const {formConfig} = this.props; const {formConfig} = this.props;
const {price} = release;
release.subMethod = (price === 0) ? "FREE" : "PAID";
const json = JSON.stringify(release); const json = JSON.stringify(release);
const blob = new Blob([json], { const blob = new Blob([json], {
@ -128,12 +125,14 @@ class AddNewReleaseFormComponent extends React.Component {
return ( return (
<div> <div>
<Spin tip="Uploading..." spinning={loading}> <Spin tip="Uploading..." spinning={loading}>
<Card>
<NewAppUploadForm <NewAppUploadForm
formConfig={formConfig} formConfig={formConfig}
supportedOsVersions={supportedOsVersions} supportedOsVersions={supportedOsVersions}
onSuccessReleaseData={this.onSuccessReleaseData} onSuccessReleaseData={this.onSuccessReleaseData}
onClickBackButton={this.onClickBackButton} onClickBackButton={this.onClickBackButton}
/> />
</Card>
</Spin> </Spin>
</div> </div>
); );

Loading…
Cancel
Save