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