Skip to content

Commit

Permalink
Rename "Refetch" button to "Fetch missing files"
Browse files Browse the repository at this point in the history
  • Loading branch information
KrKOo committed Oct 15, 2024
1 parent a891eef commit 50875f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assignment_list/assignmentlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ class Assignment {
refetchButton.setAttribute('title', 'If you broke any of your assignment files and you want to redownload them, delete those files and click this button to refetch the original version of those files.')
container.append(refetchButton);

refetchButton.innerText = 'Refetch';
refetchButton.innerText = 'Fetch missing files';
refetchButton.onclick = async function(){
refetchButton.innerText = 'Refetching...';
refetchButton.innerText = 'Fetch missing files...';
refetchButton.setAttribute('disabled', 'disabled');
const dataToSend = { course_id: that.data['course_id'], assignment_id: that.data['assignment_id']};
try {
Expand All @@ -316,7 +316,7 @@ class Assignment {

} catch (reason) {
remove_children(container);
container.innerText = 'Error refetching assignment.';
container.innerText = 'Error fetch missing files.';
console.error(
`Error on POST /assignment_list/fetch_missing ${dataToSend}.\n${reason}`
);
Expand Down

0 comments on commit 50875f9

Please sign in to comment.