From 3779f903d871165f93a202bb3c78fbd3dac0860e Mon Sep 17 00:00:00 2001
From: SVISHNEV <shlomo-stanisla.vishnevetskiy@amdocs.com>
Date: Wed, 30 Aug 2017 16:09:04 +0300
Subject: vsp submit message error fix

Change-Id: I4dd15d77d47a328f524895e2e0566a734095dd28
Issue-ID: SDC-263
Signed-off-by: SVISHNEV <shlomo-stanisla.vishnevetskiy@amdocs.com>
---
 openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'openecomp-ui/src/nfvo-components/SubmitErrorResponse.jsx')

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>
 	);
 };
-- 
cgit 1.2.3-korg

