|
|
@ -20,6 +20,7 @@ import PropTypes from 'prop-types';
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import {Button, Collapse, FormGroup, FormText, Input, Label, ModalFooter} from 'reactstrap';
|
|
|
|
import {Button, Collapse, FormGroup, FormText, Input, Label, ModalFooter} from 'reactstrap';
|
|
|
|
import Switch from '../../../UIComponents/Switch/Switch'
|
|
|
|
import Switch from '../../../UIComponents/Switch/Switch'
|
|
|
|
|
|
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* The Third step of application create wizard. {Application Release Step}
|
|
|
|
* The Third step of application create wizard. {Application Release Step}
|
|
|
@ -96,7 +97,7 @@ class Step4 extends Component {
|
|
|
|
<div id="app-release-switch-label">
|
|
|
|
<div id="app-release-switch-label">
|
|
|
|
<Label for="app-release-switch">
|
|
|
|
<Label for="app-release-switch">
|
|
|
|
<strong>
|
|
|
|
<strong>
|
|
|
|
Add Release to Application
|
|
|
|
<FormattedMessage id="Add.Release" defaultMessage="Add.Release"/>
|
|
|
|
</strong>
|
|
|
|
</strong>
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -111,7 +112,7 @@ class Step4 extends Component {
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<FormText color="muted">
|
|
|
|
<FormText color="muted">
|
|
|
|
<i>Info: </i>
|
|
|
|
<i><FormattedMessage id="Info" defaultMessage="Info"/> </i>
|
|
|
|
Enabling this will create a release for the current Application.
|
|
|
|
Enabling this will create a release for the current Application.
|
|
|
|
To upload the Application, please visit to the Release management section of
|
|
|
|
To upload the Application, please visit to the Release management section of
|
|
|
|
Application Edit View.
|
|
|
|
Application Edit View.
|
|
|
@ -120,7 +121,9 @@ class Step4 extends Component {
|
|
|
|
{/*If toggle is true, the release form will be shown.*/}
|
|
|
|
{/*If toggle is true, the release form will be shown.*/}
|
|
|
|
<Collapse isOpen={this.state.showForm}>
|
|
|
|
<Collapse isOpen={this.state.showForm}>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="release-channel">Release Channel</Label>
|
|
|
|
<Label for="release-channel">
|
|
|
|
|
|
|
|
<FormattedMessage id="Release.Channel" defaultMessage="Release.Channel"/>
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
type="select"
|
|
|
|
type="select"
|
|
|
|
id="release-channel"
|
|
|
|
id="release-channel"
|
|
|
@ -136,7 +139,9 @@ class Step4 extends Component {
|
|
|
|
</Input>
|
|
|
|
</Input>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<Label for="version">Version*</Label>
|
|
|
|
<Label for="version">
|
|
|
|
|
|
|
|
<FormattedMessage id="Version" defaultMessage="Version"/>*
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
id="version input-custom"
|
|
|
|
id="version input-custom"
|
|
|
@ -147,9 +152,15 @@ class Step4 extends Component {
|
|
|
|
</Collapse>
|
|
|
|
</Collapse>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ModalFooter>
|
|
|
|
<ModalFooter>
|
|
|
|
<Button className="custom-flat primary-flat" onClick={this.onBackClick}>Back</Button>
|
|
|
|
<Button className="custom-flat primary-flat" onClick={this.onBackClick}>
|
|
|
|
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}>Cancel</Button>
|
|
|
|
<FormattedMessage id="Back" defaultMessage="Back"/>
|
|
|
|
<Button className="custom-raised primary" onClick={this.onSubmit}>Finish</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}>
|
|
|
|
|
|
|
|
<FormattedMessage id="Cancel" defaultMessage="Cancel"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button className="custom-raised primary" onClick={this.onSubmit}>
|
|
|
|
|
|
|
|
<FormattedMessage id="Finish" defaultMessage="Finish"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</ModalFooter>
|
|
|
|
</ModalFooter>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|