Skip to content
Snippets Groups Projects
Commit ffbc0486 authored by Antoine Detailleur's avatar Antoine Detailleur Committed by Sandro Weber
Browse files

Merged in NRRPLT-8259-bootstrap-error-dialog (pull request #25)

[NRRPLT-8259] delete unnecessary cssing

Approved-by: Sandro Weber
parents 4d42c46d b7a19125
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,4 @@
.modal-header{
background-color: rgb(241, 185, 185);
color: rgb(138, 41, 41);
}
.details{
clear: left;
}
\ No newline at end of file
......@@ -41,7 +41,7 @@ class ErrorDialog extends React.Component{
}
render(){
const error = this.state.error;
let error = this.state.error;
return (
<div>
{error?
......@@ -53,18 +53,18 @@ class ErrorDialog extends React.Component{
<Modal.Body>
{error.message}
{this.state.isErrorSourceDisplayed
? <div className="details">
? <div>
{!error.code && !error.data && !error.stack
? <h6>No scary details</h6>
: null}
{this.state.error.code
? <div><h6>Code</h6><pre>{this.state.error.code}</pre></div>
{error.code
? <div><h6>Code</h6><pre>{error.code}</pre></div>
: null}
{this.state.error.data
? <div><h6>Data</h6><pre>{this.state.error.data}</pre></div>
{error.data
? <div><h6>Data</h6><pre>{error.data}</pre></div>
: null}
{this.state.error.stack
? <div><h6>Stack Trace</h6><pre>{this.state.error.stack}</pre></div>
{error.stack
? <div><h6>Stack Trace</h6><pre>{error.stack}</pre></div>
: null}
</div>
: null
......
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