MOBILE-3765 about: Add feedback form url to config

main
Noel De Martin 2021-06-08 11:57:41 +02:00
parent 75cedafa33
commit 54e1baca9d
3 changed files with 4 additions and 1 deletions

View File

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

View File

@ -31,8 +31,9 @@
<ion-label>{{ 'core.settings.privacypolicy' | translate }}</ion-label> <ion-label>{{ 'core.settings.privacypolicy' | translate }}</ion-label>
</ion-item> </ion-item>
<ion-item <ion-item
*ngIf="feedbackFormUrl"
class="ion-text-wrap" class="ion-text-wrap"
button core-link href="https://feedback.moodle.org/mobileapp" button core-link [href]="feedbackFormUrl"
detail="true" detailIcon="open-outline" detail="true" detailIcon="open-outline"
> >
<ion-icon name="fas-bullhorn" slot="start" aria-hidden="true"></ion-icon> <ion-icon name="fas-bullhorn" slot="start" aria-hidden="true"></ion-icon>

View File

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