mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Modify the app details drawer of the APPM publisher
This commit is contained in:
parent
88fed3e86e
commit
2961c1d21c
@ -30,4 +30,8 @@
|
||||
width: 210%;
|
||||
}
|
||||
|
||||
.app-release-cards{
|
||||
display: grid;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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}>
|
||||
<Card>
|
||||
<NewAppUploadForm
|
||||
formConfig={formConfig}
|
||||
supportedOsVersions={supportedOsVersions}
|
||||
onSuccessReleaseData={this.onSuccessReleaseData}
|
||||
onClickBackButton={this.onClickBackButton}
|
||||
/>
|
||||
</Card>
|
||||
</Spin>
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user