MOBILE-4384 about: Add legal disclaimer in settings

main
Alfonso Salces 2023-07-11 08:50:31 +02:00
parent 35dc09f93e
commit 8d290ff7d1
5 changed files with 9 additions and 0 deletions

View File

@ -2365,6 +2365,7 @@
"core.settings.ioscookies": "local_moodlemobileapp",
"core.settings.ioscookiesdescription": "local_moodlemobileapp",
"core.settings.language": "moodle",
"core.settings.legaldisclaimer": "local_moodlemobileapp",
"core.settings.license": "moodle",
"core.settings.localnotifavailable": "local_moodlemobileapp",
"core.settings.locationhref": "local_moodlemobileapp",

View File

@ -50,6 +50,7 @@
"ioscookies": "Cross-Website Tracking",
"ioscookiesdescription": "Embedded content from the site might require cross-site cookies to work. To enable it, please go to the app's iOS settings and enable 'Allow Cross-Website Tracking'.",
"language": "Language",
"legaldisclaimer": "Legal disclaimer",
"license": "Licence",
"localnotifavailable": "Local notifications available",
"locationhref": "Web view URL",

View File

@ -32,6 +32,11 @@
<ion-icon name="fas-bullhorn" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.helpusimprove' | translate }}</ion-label>
</ion-item>
<ion-item *ngIf="legalDisclaimer" class="ion-text-wrap" button core-link auto-login="no" [href]="legalDisclaimer" detail="true"
detailIcon="open-outline">
<ion-icon name="fas-balance-scale" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.legaldisclaimer' | translate }}</ion-label>
</ion-item>
</ion-list>
</ion-content>

View File

@ -36,6 +36,7 @@ export class CoreSettingsAboutPage {
a11yStatement = CoreConstants.CONFIG.a11yStatement ?? 'https://apps.moodle.com/admin/tool/policy/view.php?versionid=5';
currentSite?: CoreSite;
showSurvey: boolean | undefined = false;
legalDisclaimer = CoreConstants.CONFIG.legalDisclaimer;
constructor() {
this.currentSite = CoreSites.getCurrentSite();

View File

@ -63,6 +63,7 @@ export interface EnvironmentConfig {
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
feedbackFormUrl?: string | false;
a11yStatement?: string | false;
legalDisclaimer?: string | false;
iabToolbarColors?: 'auto' | { background: string; text?: string } | null;
wsrequestqueuelimit: number; // Maximum number of requests allowed in the queue.
wsrequestqueuedelay: number; // Maximum number of miliseconds to wait before processing the queue.