Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/components/Results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class Results extends Component {
Green: "success"
};
setTimeout(() => {
fetch("/api/feedback?qty=100")
fetch("/api/feedback")
.then(response => response.json())
.then((jsonData) => {
const feedback = jsonData["results"];
Expand Down Expand Up @@ -143,13 +143,16 @@ export default class Results extends Component {
<Row>
<Col xl className={"mb-2 float-right"}>
{this.state.showHandled &&
<Button className={"float-right"} onClick={() => this.toggleShowHandled()}>
<Button className={"float-right ml-2 mb-2"} onClick={() => this.toggleShowHandled()}>
<i className="fas fa-eye-slash"></i> Hide Handled Feedback
</Button>}
{!this.state.showHandled &&
<Button className={"float-right"} onClick={() => this.toggleShowHandled()}>
<Button className={"float-right ml-2 mb-2"} onClick={() => this.toggleShowHandled()}>
<i className="fas fa-eye"></i> Show Handled Feedback
</Button>}
<a className={"btn btn-success float-right"} href={"/api/feedback?download=true"}>
<i className="fas fa-cloud-download-alt"></i> Download
</a>
</Col>
</Row>
<Row>
Expand Down
Loading