summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src
diff options
context:
space:
mode:
authorSVISHNEV <shlomo-stanisla.vishnevetskiy@amdocs.com>2017-08-30 16:09:04 +0300
committerSVISHNEV <shlomo-stanisla.vishnevetskiy@amdocs.com>2017-08-30 16:10:24 +0300
commit3779f903d871165f93a202bb3c78fbd3dac0860e (patch)
tree17c1ea42255a090b36f509c9715845f5be2a6806 /openecomp-ui/src
parent7cd1156c3cab009146ca02989df394412d209483 (diff)
vsp submit message error fix
Change-Id: I4dd15d77d47a328f524895e2e0566a734095dd28 Issue-ID: SDC-263 Signed-off-by: SVISHNEV <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src')
-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>
);
};