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