Skip to content

Commit

Permalink
Bulk mgmt tab fix (#158)
Browse files Browse the repository at this point in the history
* fix bulk management tab

* fix status alert prop

* shorthand fragment to make ci happy
  • Loading branch information
muselesscreator authored Dec 16, 2020
1 parent 8881e62 commit cc01ab0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/components/Gradebook/BulkManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
Button,
StatusAlert,
Table,
Tab,
} from '@edx/paragon';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faDownload } from '@fortawesome/free-solid-svg-icons';
Expand Down Expand Up @@ -84,15 +83,15 @@ export class BulkManagement extends React.Component {

render() {
return (
<Tab eventKey="bulk_management" title="Bulk Management">
<div>
<h4>Use this feature by downloading a CSV for bulk management,
overriding grades locally, and coming back here to upload.
</h4>
<form ref={this.fileFormRef} action={this.props.gradeExportUrl} method="post">
<StatusAlert
alertType="danger"
dialog={this.props.bulkImportError}
open={this.props.bulkImportError}
isOpen={this.props.bulkImportError}
dismissible={false}
/>
<StatusAlert
Expand Down Expand Up @@ -151,7 +150,7 @@ export class BulkManagement extends React.Component {
]}
className="table-striped"
/>
</Tab>
</div>
);
}
}
Expand Down
10 changes: 6 additions & 4 deletions src/components/Gradebook/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,12 @@ export default class Gradebook extends React.Component {
</Tab>
{this.props.showBulkManagement
&& (
<BulkManagement
courseId={this.props.courseId}
gradeExportUrl={this.props.gradeExportUrl}
/>
<Tab eventKey="bulk_management" title="Bulk Management">
<BulkManagement
courseId={this.props.courseId}
gradeExportUrl={this.props.gradeExportUrl}
/>
</Tab>
)}
</Tabs>
</div>
Expand Down

0 comments on commit cc01ab0

Please sign in to comment.