From c3d1c5100006e5557c9bbdc8fc8561ad4dd057a0 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Tue, 8 Oct 2024 09:43:45 +0200 Subject: [PATCH] closing error/success message --- frontend/src/scripts/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index c57e975..57c18f3 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -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 { {this.state.status == "success" && -
- {this.state.text} +
{this.setState({status: "", status_text:""})}}> + {this.state.status_text}
} {this.state.status == "failed" && -
- {this.state.text} +
{this.setState({status: "", status_text:""})}}> + {this.state.status_text}
} {this.state.page == "#upload_files" &&