MOBILE-4059 user: Add suffix to support form

main
Noel De Martin 2022-11-22 17:28:33 +01:00
parent e08d5e06c3
commit d78a7dd78b
3 changed files with 6 additions and 0 deletions

View File

@ -2396,6 +2396,7 @@
"core.user.sendemail": "local_moodlemobileapp",
"core.user.student": "moodle/defaultcoursestudent",
"core.user.support": "local_moodlemobileapp",
"core.user.supportsubject": "local_moodlemobileapp",
"core.user.teacher": "moodle/noneditingteacher",
"core.user.useraccount": "moodle",
"core.user.userwithid": "local_moodlemobileapp",

View File

@ -31,6 +31,7 @@
"sendemail": "Email",
"student": "Student",
"support": "Contact site support",
"supportsubject": "[App] {{subject}}",
"teacher": "Non-editing teacher",
"userwithid": "User with ID {{id}}",
"webpage": "Web page"

View File

@ -90,6 +90,10 @@ export class CoreUserSupportService {
return;
}
if (subject) {
subject = Translate.instant('core.user.supportsubject', { subject });
}
const unsubscribe = CoreSubscriptions.once(browser.on('loadstop'), () => {
browser.executeScript({
code: `