Merge pull request #2815 from NoelDeMartin/MOBILE-3765

MOBILE-3765: Add about feedback form url to config
main
Dani Palou 2021-06-08 12:47:14 +02:00 committed by GitHub
commit 9102f7a979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -177,6 +177,7 @@ export interface EnvironmentConfig {
forceOpenLinksIn: 'app' | 'browser';
iOSDefaultOpenFileAction?: OpenFileAction;
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
feedbackFormUrl?: string | false;
};
export interface EnvironmentBuild {

View File

@ -13,14 +13,14 @@
<ion-item class="ion-text-wrap">
<ion-label><h2>{{ appName }} {{ versionName }}</h2></ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="openPage('licenses')" detail="true">
<ion-icon name="far-copyright" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.opensourcelicenses' | translate }}</ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="openPage('deviceinfo')" detail="true">
<ion-icon name="fas-mobile" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.deviceinfo' | translate }}</ion-label>
</ion-item>
<ion-item button class="ion-text-wrap" (click)="openPage('licenses')" detail="true">
<ion-icon name="far-copyright" slot="start" aria-hidden="true"></ion-icon>
<ion-label>{{ 'core.settings.opensourcelicenses' | translate }}</ion-label>
</ion-item>
<ion-item
*ngIf="privacyPolicy"
class="ion-text-wrap"
@ -31,8 +31,9 @@
<ion-label>{{ 'core.settings.privacypolicy' | translate }}</ion-label>
</ion-item>
<ion-item
*ngIf="feedbackFormUrl"
class="ion-text-wrap"
button core-link href="https://feedback.moodle.org/mobileapp"
button core-link [href]="feedbackFormUrl"
detail="true" detailIcon="open-outline"
>
<ion-icon name="fas-bullhorn" slot="start" aria-hidden="true"></ion-icon>

View File

@ -30,6 +30,7 @@ export class CoreSettingsAboutPage {
appName: string;
versionName: string;
privacyPolicy: string;
feedbackFormUrl = CoreConstants.CONFIG.feedbackFormUrl ?? 'https://feedback.moodle.org/mobileapp';
constructor() {
const currentSite = CoreSites.getCurrentSite();