Skip to content
Snippets Groups Projects
Commit d8fa06fc authored by Antoine Detailleur's avatar Antoine Detailleur
Browse files

[NRRPLT-8136] details in Modal.Body, Details title deleted

parent d4b7dc6d
No related branches found
No related tags found
No related merge requests found
......@@ -54,17 +54,7 @@ class ErrorDialog extends React.Component{
<h4>{error.type}</h4>
</Modal.Header>
<Modal.Body>
<h5>Details</h5><pre>{error.message}</pre>
</Modal.Body>
<Modal.Footer>
<div>
<Button variant="warning" onClick={() => this.handleClose()}>
<span className="glyphicon glyphicon-remove"></span> Close
</Button>
<Button variant="light" onClick={() => this.sourceDisplay()}>
{this.state.isErrorSourceDisplayed ? 'Hide' : 'Show'} scary details <span></span>
</Button>
</div>
{error.message}
{this.state.isErrorSourceDisplayed
? <div className="details">
{!error.code && !error.data && !error.stack
......@@ -82,6 +72,16 @@ class ErrorDialog extends React.Component{
</div>
: null
}
</Modal.Body>
<Modal.Footer>
<div>
<Button variant="warning" onClick={() => this.handleClose()}>
<span className="glyphicon glyphicon-remove"></span> Close
</Button>
<Button variant="light" onClick={() => this.sourceDisplay()}>
{this.state.isErrorSourceDisplayed ? 'Hide' : 'Show'} scary details <span></span>
</Button>
</div>
</Modal.Footer>
</Modal.Dialog>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment