diff options
author | 2017-10-22 13:50:50 +0000 | |
---|---|---|
committer | 2017-10-22 13:50:50 +0000 | |
commit | 6ebd9c581142c2ca033c7bfba73b69ab6b378fee (patch) | |
tree | 6f4d022597844233716a683fa629b01a6345e29f /openecomp-ui/src/nfvo-components | |
parent | c7026576d55cce40fb9928616ab63f5a73663238 (diff) | |
parent | 6511b4b016accbac5b221b8f8f46db6a89255a57 (diff) |
Merge "parse multilple error messages in separate lines"
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 |