MDL-67160 mod_forum: Show the users grading status in the grader
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -115,6 +115,7 @@ const getUpdateUserContentFunction = (root, getContentForUser, getGradeForUser,
|
||||
if (spinner) {
|
||||
spinner.resolve();
|
||||
}
|
||||
return userGrade;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -393,9 +394,10 @@ export const launch = async(getListOfUsers, getContentForUser, getGradeForUser,
|
||||
// Fetch the userpicker for display.
|
||||
const userPicker = await getUserPicker(
|
||||
userList,
|
||||
user => {
|
||||
async(user) => {
|
||||
const userGrade = await updateUserContent(user);
|
||||
const renderContext = {
|
||||
status: null,
|
||||
status: userGrade.hasgrade,
|
||||
index: userIds.indexOf(user.id) + 1,
|
||||
total: userList.length
|
||||
};
|
||||
@@ -403,7 +405,6 @@ export const launch = async(getListOfUsers, getContentForUser, getGradeForUser,
|
||||
statusContainer.innerHTML = html;
|
||||
return html;
|
||||
}).catch();
|
||||
updateUserContent(user);
|
||||
},
|
||||
saveGradeFunction,
|
||||
{
|
||||
|
||||
@@ -33,5 +33,12 @@
|
||||
"total": 10
|
||||
}
|
||||
}}
|
||||
{{#status}}<h2 class="font-weight-bold h5 mb-0">{{.}}</h2>{{/status}}
|
||||
<h2 class="font-weight-bold h5 mb-0">
|
||||
{{#status}}
|
||||
{{#str}}graded, forum{{/str}}
|
||||
{{/status}}
|
||||
{{^status}}
|
||||
{{#str}}notgraded, forum{{/str}}
|
||||
{{/status}}
|
||||
</h2>
|
||||
<div>{{#str}} indexoutoftotal, mod_forum, {"index": "{{index}}", "total":"{{total}}"}{{/str}}</div>
|
||||
|
||||
Reference in New Issue
Block a user