summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/nfvo-components
diff options
context:
space:
mode:
authorVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2017-09-03 06:59:43 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-03 06:59:43 +0000
commiteb0fecca5af716c37f74bf06f0c72f0ec588c662 (patch)
tree8b83ec07e928e27b8e76afc2b0482703de4d04c4 /openecomp-ui/src/nfvo-components
parente30493ea578ea585f5d5b35a81cf052b085398a8 (diff)
parent3779f903d871165f93a202bb3c78fbd3dac0860e (diff)
Merge "vsp submit message error fix"
Diffstat (limited to 'openecomp-ui/src/nfvo-components')
-rw-r--r--openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx b/openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx
index 1488c6c0bb..8d45d86a9d 100644
--- a/openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx
+++ b/openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx
@@ -109,13 +109,13 @@ const UploadErrorList = ({items}) => {
let generator = entries(items);
let errors = [];
- let i = 0;
for (let item of generator) {errors.push(
<div>
<div className='component-name-header'>{item.header}</div>
- {item.list.map(error => <ErrorMessage key={i++} warning={error.level === 'WARNING'} error={error.message}/> )}
+ {item.list.map((error, i) => <ErrorMessage key={i} warning={error.level === 'WARNING'} error={error.message}/> )}
</div>
);}
+
return (
<div>
{errors}
@@ -152,7 +152,10 @@ const ErrorHeader = ({errorType, collapsed, onClick}) => {
const ErrorMessage = ({error, warning}) => {
return (
<ListGroupItem className='error-code-list-item'>
- <SVGIcon name={warning ? 'warning' : 'error'} label={error} labelPosition='right' color={warning ? 'warning' : 'negative'} labelClassName='icon-label'/>
+ <SVGIcon
+ name={warning ? 'exclamationTriangleLine' : 'error'}
+ color={warning ? 'warning' : 'negative'} />
+ <span className='icon-label'>{error}</span>
</ListGroupItem>
);
};