MOBILE-3865 about: Add a11y statement link

main
Pau Ferrer Ocaña 2021-10-13 10:58:43 +02:00
parent 0ba56b1558
commit a200b97867
5 changed files with 13 additions and 0 deletions

View File

@ -2068,6 +2068,7 @@
"core.sending": "chat",
"core.serverconnection": "error",
"core.settings.about": "local_moodlemobileapp",
"core.settings.accessibilitystatement": "local_moodlemobileapp",
"core.settings.appsettings": "local_moodlemobileapp",
"core.settings.appversion": "local_moodlemobileapp",
"core.settings.cannotsyncloggedout": "local_moodlemobileapp",

View File

@ -1,5 +1,6 @@
{
"about": "About",
"accessibilitystatement": "Accessibility statement",
"appsettings": "App settings",
"appversion": "App version",
"cannotsyncloggedout": "This site cannot be synchronised because you've logged out. Please try again when you're logged in the site again.",

View File

@ -28,6 +28,15 @@
<ion-icon name="fas-user-shield" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.privacypolicy' | translate }}</ion-label>
</ion-item>
<ion-item
*ngIf="a11yStatement"
class="ion-text-wrap"
button core-link auto-login="no" [href]="a11yStatement"
detail="true" detailIcon="open-outline"
>
<ion-icon name="fas-universal-access" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.accessibilitystatement' | translate }}</ion-label>
</ion-item>
<ion-item
*ngIf="feedbackFormUrl"
class="ion-text-wrap"

View File

@ -31,6 +31,7 @@ export class CoreSettingsAboutPage {
versionName: string;
privacyPolicy: string;
feedbackFormUrl = CoreConstants.CONFIG.feedbackFormUrl ?? 'https://feedback.moodle.org/mobileapp';
a11yStatement = CoreConstants.CONFIG.a11yStatement ?? 'https://apps.moodle.com/admin/tool/policy/view.php?versionid=5';
constructor() {
const currentSite = CoreSites.getCurrentSite();

View File

@ -56,4 +56,5 @@ export interface EnvironmentConfig {
iOSDefaultOpenFileAction?: OpenFileAction;
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
feedbackFormUrl?: string | false;
a11yStatement?: string | false;
}