Merge pull request #2815 from NoelDeMartin/MOBILE-3765
MOBILE-3765: Add about feedback form url to configmain
commit
9102f7a979
|
@ -177,6 +177,7 @@ export interface EnvironmentConfig {
|
|||
forceOpenLinksIn: 'app' | 'browser';
|
||||
iOSDefaultOpenFileAction?: OpenFileAction;
|
||||
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
|
||||
feedbackFormUrl?: string | false;
|
||||
};
|
||||
|
||||
export interface EnvironmentBuild {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue