1 import React, {Component} from 'react';
2 import i18n from 'nfvo-utils/i18n/i18n.js';
3 import Input from 'nfvo-components/input/validation/ValidationInput.jsx';
4 import Form from 'nfvo-components/input/validation/ValidationForm.jsx';
6 class FlowsEditorModalView extends Component {
9 let {onCancel, onDataChanged, currentFlow} = this.props;
10 let {artifactName, description} = currentFlow;
12 <Form onSubmit={() => this.onSaveClicked()} onReset={onCancel}>
17 validations={{required: true}}
19 onChange={artifactName => onDataChanged({artifactName})}/>
23 label={i18n('Description')}
24 validations={{required: true}}
26 onChange={description => onDataChanged({description})}/>
32 let {currentFlow, onSubmit} = this.props;
34 onSubmit(currentFlow);
40 export default FlowsEditorModalView;