From 6511b4b016accbac5b221b8f8f46db6a89255a57 Mon Sep 17 00:00:00 2001 From: miriame Date: Sun, 22 Oct 2017 15:14:44 +0300 Subject: parse multilple error messages in separate lines Change-Id: I7e17ea7b4fdd31fe3b9607f9896b077bb8d9f451 Issue-ID: SDC-488 Signed-off-by: miriame --- openecomp-ui/src/nfvo-components/modal/GlobalModal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openecomp-ui/src/nfvo-components/modal') diff --git a/openecomp-ui/src/nfvo-components/modal/GlobalModal.js b/openecomp-ui/src/nfvo-components/modal/GlobalModal.js index e05c2ac616..f282046125 100644 --- a/openecomp-ui/src/nfvo-components/modal/GlobalModal.js +++ b/openecomp-ui/src/nfvo-components/modal/GlobalModal.js @@ -112,7 +112,10 @@ export class GlobalModalView extends React.Component { {title} - {ComponentToRender ? : msg} + {ComponentToRender ? + : +
{msg && msg.split('\n').map(txt => {txt}
)}
+ }
{(onConfirmed || onDeclined || type !== typeEnum.DEFAULT) &&