MOBILE-3765 about: Add feedback form url to config
parent
75cedafa33
commit
54e1baca9d
|
@ -177,6 +177,7 @@ export interface EnvironmentConfig {
|
|||
forceOpenLinksIn: 'app' | 'browser';
|
||||
iOSDefaultOpenFileAction?: OpenFileAction;
|
||||
customMainMenuItems?: CoreMainMenuLocalizedCustomItem[];
|
||||
feedbackFormUrl?: string | false;
|
||||
};
|
||||
|
||||
export interface EnvironmentBuild {
|
||||
|
|
|
@ -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