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

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

Loading…
Cancel
Save