diff options
author | miriame <miriam.eini@amdocs.com> | 2017-10-22 15:14:44 +0300 |
---|---|---|
committer | miriame <miriam.eini@amdocs.com> | 2017-10-22 15:14:44 +0300 |
commit | 6511b4b016accbac5b221b8f8f46db6a89255a57 (patch) | |
tree | e5b8ca16dfb238dc4057f657816bc384f1815edd /openecomp-ui/src/nfvo-components | |
parent | a287b5148248fb02dd72c816b3a7fea73a4ce918 (diff) |
parse multilple error messages in separate lines
Change-Id: I7e17ea7b4fdd31fe3b9607f9896b077bb8d9f451
Issue-ID: SDC-488
Signed-off-by: miriame <miriam.eini@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/nfvo-components')
-rw-r--r-- | openecomp-ui/src/nfvo-components/modal/GlobalModal.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 { <Modal.Title>{title}</Modal.Title> </Modal.Header> <Modal.Body> - {ComponentToRender ? <ComponentToRender {...modalComponentProps}/> : msg} + {ComponentToRender ? + <ComponentToRender {...modalComponentProps}/> : + <div> {msg && msg.split('\n').map(txt => <span> {txt} <br/> </span>)} </div> + } </Modal.Body> {(onConfirmed || onDeclined || type !== typeEnum.DEFAULT) && <ModalFooter |