Skip to content

Commit

Permalink
Mobile app: Disable PTR in new pages to fix re-send answers
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou committed Sep 4, 2024
1 parent 2bf1319 commit ce9d092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/local/mobile/latest/main_index_page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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 ce9d092

Please sign in to comment.