From 61b57f148f923e6dae7236cbae2e18bbab712722 Mon Sep 17 00:00:00 2001 From: Bingjie Xue Date: Thu, 23 Jun 2022 03:09:48 -0400 Subject: [PATCH] add alert after submit bedset --- src/createBedSet.jsx | 45 ++++---------------------------------------- src/searchResult.jsx | 14 +++++--------- 2 files changed, 9 insertions(+), 50 deletions(-) diff --git a/src/createBedSet.jsx b/src/createBedSet.jsx index 433de77..ff726dd 100644 --- a/src/createBedSet.jsx +++ b/src/createBedSet.jsx @@ -27,26 +27,10 @@ export default class CreateBedSet extends React.Component { } async componentDidMount() { - console.log("my bed set:", this.state.myBedSet) + this.getBedIdx() } async createBedSet() { - this.getBedIdx() - // let idx_list = [] - - // idx_list.push( - // this.state.myBedSet.map((bed) => { - // return bed.id; - // }) - // ) - - // idx_list = encodeURIComponent( - // idx_list.toString() - // ) - - // this.setState({ - // myBedSetIdx: idx_list - // }) let md = await api.post( "/api/bedset/create/" + @@ -55,6 +39,8 @@ export default class CreateBedSet extends React.Component { this.state.myBedSetIdx ).then(({ data }) => data) + alert("Your BED set has been submitted for processing!") + localStorage.clear(); } @@ -88,24 +74,9 @@ export default class CreateBedSet extends React.Component {
-

Download My BED Set

- -

- {"Download from http with command "} - - {"wget -i my_bedset_http.txt"} - -

-

- {"Download from s3 with command "} - - {"cat my_bedset_s3.txt | parallel aws s3 cp {} "} - -

-
+

My BED Set

{this.state.myBedSet ? ( @@ -162,17 +133,9 @@ export default class CreateBedSet extends React.Component { }} /> - {/* */}