Skip to content

Commit

Permalink
MOBILE-4384 about: Add legal disclaimer in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-salces committed Jul 11, 2023
1 parent 35dc09f commit 8d290ff
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/langindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/core/features/settings/lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/core/features/settings/pages/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ <h1>
<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>

Expand Down
1 change: 1 addition & 0 deletions src/core/features/settings/pages/about/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8d290ff

Please sign in to comment.