Skip to content

Commit 50875f9

Browse files
committed
Rename "Refetch" button to "Fetch missing files"
1 parent a891eef commit 50875f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/assignment_list/assignmentlist.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ class Assignment {
301301
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.')
302302
container.append(refetchButton);
303303

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

317317
} catch (reason) {
318318
remove_children(container);
319-
container.innerText = 'Error refetching assignment.';
319+
container.innerText = 'Error fetch missing files.';
320320
console.error(
321321
`Error on POST /assignment_list/fetch_missing ${dataToSend}.\n${reason}`
322322
);

0 commit comments

Comments
 (0)