Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
add feedback that connect is submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
hcientist committed Mar 17, 2024
1 parent 89cfbfe commit 47764e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ export function postConnect({ slug, assignmentId, response }) {
// success case
dispatch(uploadSucceeded(assignmentId));
const p = new Promise((resolve) => {
setTimeout(() => resolve, 1000);
setTimeout(() => resolve, 1000); // FIXME: this is a kludge
});
return p;
})
Expand Down
3 changes: 2 additions & 1 deletion components/student/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
fetchSingleStudentAssignment,
postConnect,
} from '../../actions';
import StatusIndicator from '../statusIndicator';

export default function ConnectActivity() {
const router = useRouter();
Expand Down Expand Up @@ -80,7 +81,7 @@ export default function ConnectActivity() {
}}
style={{ width: '100%' }}
/>
<Button type="submit">Submit</Button>
<Button type="submit">Submit</Button> <StatusIndicator statusId={assignmentId ?? 'connect'} />
</Form>
</>
);
Expand Down

0 comments on commit 47764e4

Please sign in to comment.