|
|
@ -117,7 +117,7 @@ class EditReleaseModal extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showModal = () => {
|
|
|
|
showModal = () => {
|
|
|
|
const {release} = this.props;
|
|
|
|
const {app, release} = this.props;
|
|
|
|
const {formConfig} = this.state;
|
|
|
|
const {formConfig} = this.state;
|
|
|
|
const {specificElements} = formConfig;
|
|
|
|
const {specificElements} = formConfig;
|
|
|
|
let metaData = [];
|
|
|
|
let metaData = [];
|
|
|
@ -143,6 +143,14 @@ class EditReleaseModal extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (specificElements.hasOwnProperty("packageName")) {
|
|
|
|
|
|
|
|
// this.props.form.setFields({
|
|
|
|
|
|
|
|
// packageName: {
|
|
|
|
|
|
|
|
// value: app.packageName
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (specificElements.hasOwnProperty("version")) {
|
|
|
|
if (specificElements.hasOwnProperty("version")) {
|
|
|
|
this.props.form.setFields({
|
|
|
|
this.props.form.setFields({
|
|
|
|
version: {
|
|
|
|
version: {
|
|
|
@ -238,10 +246,10 @@ class EditReleaseModal extends React.Component {
|
|
|
|
if (specificElements.hasOwnProperty("url")) {
|
|
|
|
if (specificElements.hasOwnProperty("url")) {
|
|
|
|
release.url = values.url;
|
|
|
|
release.url = values.url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
if (specificElements.hasOwnProperty("packageName")) {
|
|
|
|
// if (specificElements.hasOwnProperty("packageName")) {
|
|
|
|
release.packageName = values.packageName;
|
|
|
|
// release.packageName = values.packageName;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (icons.length === 1) {
|
|
|
|
if (icons.length === 1) {
|
|
|
|
data.append('icon', icons[0].originFileObj);
|
|
|
|
data.append('icon', icons[0].originFileObj);
|
|
|
@ -362,18 +370,18 @@ class EditReleaseModal extends React.Component {
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{formConfig.specificElements.hasOwnProperty("packageName") && (
|
|
|
|
{/*{formConfig.specificElements.hasOwnProperty("packageName") && (*/}
|
|
|
|
<Form.Item {...formItemLayout} label="Package Name">
|
|
|
|
{/* <Form.Item {...formItemLayout} label="Package Name">*/}
|
|
|
|
{getFieldDecorator('packageName', {
|
|
|
|
{/* {getFieldDecorator('packageName', {*/}
|
|
|
|
rules: [{
|
|
|
|
{/* rules: [{*/}
|
|
|
|
required: true,
|
|
|
|
{/* required: true,*/}
|
|
|
|
message: 'Please input the package name'
|
|
|
|
{/* message: 'Please input the package name'*/}
|
|
|
|
}],
|
|
|
|
{/* }],*/}
|
|
|
|
})(
|
|
|
|
{/* })(*/}
|
|
|
|
<Input placeholder="Package Name"/>
|
|
|
|
{/* <Input placeholder="Package Name"/>*/}
|
|
|
|
)}
|
|
|
|
{/* )}*/}
|
|
|
|
</Form.Item>
|
|
|
|
{/* </Form.Item>*/}
|
|
|
|
)}
|
|
|
|
{/*)}*/}
|
|
|
|
|
|
|
|
|
|
|
|
{formConfig.specificElements.hasOwnProperty("url") && (
|
|
|
|
{formConfig.specificElements.hasOwnProperty("url") && (
|
|
|
|
<Form.Item {...formItemLayout} label="URL">
|
|
|
|
<Form.Item {...formItemLayout} label="URL">
|
|
|
|