From 27c998d25d095c242b358210a9c44bfc043b048a Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 20 Feb 2025 16:32:35 +0100 Subject: [PATCH] Fix issue https://github.com/PoetOS/moodle-mod_questionnaire/issues/602 (#603) * Mobile app: Fix module-info component in subpages * Mobile app: Disable PTR in new pages to fix re-send answers --- templates/local/mobile/latest/main_index_page.mustache | 8 ++++---- templates/local/mobile/latest/view_activity_page.mustache | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/local/mobile/latest/main_index_page.mustache b/templates/local/mobile/latest/main_index_page.mustache index b561bc1a..a1ad3288 100644 --- a/templates/local/mobile/latest/main_index_page.mustache +++ b/templates/local/mobile/latest/main_index_page.mustache @@ -78,8 +78,8 @@ }} {{=<% %>=}}
- + <%#notifications%> @@ -92,13 +92,13 @@ <%#resume%> + method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'resume'}" [ptrEnabled]="false"> {{ 'plugin.mod_questionnaire.resumesurvey' | translate }} <%/resume%> <%^resume%> + method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'respond'}" [ptrEnabled]="false"> {{ 'plugin.mod_questionnaire.answerquestions' | translate }} <%/resume%> diff --git a/templates/local/mobile/latest/view_activity_page.mustache b/templates/local/mobile/latest/view_activity_page.mustache index eb7a8a47..e62a2f19 100644 --- a/templates/local/mobile/latest/view_activity_page.mustache +++ b/templates/local/mobile/latest/view_activity_page.mustache @@ -159,7 +159,7 @@ }" [useOtherData]="null" [preSets]="{getFromCache: 0, saveToCache: 0}" - refreshOnSuccess="true" + refreshOnSuccess="true" [ptrEnabled]="false" samePage="true" type="submit" > @@ -181,7 +181,7 @@ }" [useOtherData]="null" [preSets]="{getFromCache: 0, saveToCache: 0}" - refreshOnSuccess="true" + refreshOnSuccess="true" [ptrEnabled]="false" samePage="true" type="submit" > @@ -209,7 +209,7 @@ }" [useOtherData]="null" [preSets]="{getFromCache: 0, saveToCache: 0}" - refreshOnSuccess="true" + refreshOnSuccess="true" [ptrEnabled]="false" samePage="true" type="submit" >{{ 'plugin.mod_questionnaire.savechanges' | translate }} <%/completed%><%/nextpage%>