From cdb56d172e47d7412079f5268cf8b410f2130b58 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 22 Apr 2024 11:32:16 +0200 Subject: [PATCH] MOBILE-4550 quiz: Display when attempt can be reviewed --- scripts/langindex.json | 2 + .../index/addon-mod-quiz-index.html | 5 +- src/addons/mod/quiz/components/index/index.ts | 4 ++ src/addons/mod/quiz/lang.json | 2 + src/addons/mod/quiz/services/quiz-helper.ts | 48 ++++++++++++++++++- 5 files changed, 57 insertions(+), 4 deletions(-) diff --git a/scripts/langindex.json b/scripts/langindex.json index 5b18e0fbf..e9d1ac227 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -914,6 +914,8 @@ "addon.mod_quiz.mustbesubmittedby": "quiz", "addon.mod_quiz.noquestions": "quiz", "addon.mod_quiz.noreviewattempt": "quiz", + "addon.mod_quiz.noreviewuntil": "quiz", + "addon.mod_quiz.noreviewuntilshort": "quiz", "addon.mod_quiz.notyetgraded": "quiz", "addon.mod_quiz.opentoc": "local_moodlemobileapp", "addon.mod_quiz.outof": "quiz", diff --git a/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html b/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html index 61e5cd8ba..db9d74c29 100644 --- a/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html +++ b/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html @@ -82,14 +82,13 @@