closing error/success message

This commit is contained in:
Martin Quarda 2024-10-08 09:43:45 +02:00
parent dab020e0d5
commit c3d1c51000

View File

@ -17,7 +17,7 @@ class Main extends Component {
super(props);
this.state = {
files: [],
text: "",
status_text: "",
status: "",
faq: false,
results: [],
@ -163,12 +163,12 @@ class Main extends Component {
</div>
</nav>
{this.state.status == "success" &&
<div class="absolute container-fluid alert alert-success">
{this.state.text}
<div class="absolute container-fluid alert alert-success" onClick={(e) => {this.setState({status: "", status_text:""})}}>
{this.state.status_text}
</div>}
{this.state.status == "failed" &&
<div class="absolute container-fluid alert alert-danger">
{this.state.text}
<div class="absolute container-fluid alert alert-danger" onClick={(e) => {this.setState({status: "", status_text:""})}}>
{this.state.status_text}
</div>}
{this.state.page == "#upload_files" &&
<div>