Skip to content

Commit

Permalink
Fix issue #602 (#603)
Browse files Browse the repository at this point in the history
* Mobile app: Fix module-info component in subpages

* Mobile app: Disable PTR in new pages to fix re-send answers
  • Loading branch information
dpalou authored Feb 20, 2025
1 parent 270cebf commit 27c998d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions templates/local/mobile/latest/main_index_page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
}}
{{=<% %>=}}
<div>
<core-course-module-info [module]="module" description="<%intro%>" component="mod_questionnaire" componentId="<%cmid%>"
[courseId]="courseId"></core-course-module-info>
<core-course-module-info *ngIf="module" [module]="module" description="<%intro%>" component="mod_questionnaire"
componentId="<%cmid%>" [courseId]="courseId"></core-course-module-info>
<%#notifications%>
<ion-card>
<ion-card-content>
Expand All @@ -92,13 +92,13 @@
<ion-card-content>
<%#resume%>
<ion-button expand="block" core-site-plugins-new-content component="mod_questionnaire"
method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'resume'}">
method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'resume'}" [ptrEnabled]="false">
{{ 'plugin.mod_questionnaire.resumesurvey' | translate }}
</ion-button>
<%/resume%>
<%^resume%>
<ion-button expand="block" core-site-plugins-new-content component="mod_questionnaire"
method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'respond'}">
method="mobile_view_activity" [args]="{cmid: <%cmid%>, action: 'respond'}" [ptrEnabled]="false">
{{ 'plugin.mod_questionnaire.answerquestions' | translate }}
</ion-button>
<%/resume%>
Expand Down
6 changes: 3 additions & 3 deletions templates/local/mobile/latest/view_activity_page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
}"
[useOtherData]="null"
[preSets]="{getFromCache: 0, saveToCache: 0}"
refreshOnSuccess="true"
refreshOnSuccess="true" [ptrEnabled]="false"
samePage="true" type="submit"
>
<ion-icon name="fas-chevron-left" slot="start" aria-hidden="true"></ion-icon>
Expand All @@ -181,7 +181,7 @@
}"
[useOtherData]="null"
[preSets]="{getFromCache: 0, saveToCache: 0}"
refreshOnSuccess="true"
refreshOnSuccess="true" [ptrEnabled]="false"
samePage="true" type="submit"
>
<ion-icon name="fas-chevron-right" slot="end" aria-hidden="true"></ion-icon>
Expand Down Expand Up @@ -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 }}</ion-button>
<%/completed%><%/nextpage%>
Expand Down

0 comments on commit 27c998d

Please sign in to comment.