From 0e9b3dcbe1657feaf458c7d860e6d33cd63165c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 12 Sep 2019 09:22:03 +0200 Subject: [PATCH] MOBILE-3119 settings: Show site URL on about page --- src/core/settings/pages/about/about.html | 8 ++++++++ src/core/settings/pages/about/about.ts | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/core/settings/pages/about/about.html b/src/core/settings/pages/about/about.html index 65dd36145..f948746d8 100644 --- a/src/core/settings/pages/about/about.html +++ b/src/core/settings/pages/about/about.html @@ -23,6 +23,14 @@

{{ privacyPolicy }}

+ + + + {{ 'core.login.siteurl' | translate }} * + + +

{{ siteUrl }}

+
diff --git a/src/core/settings/pages/about/about.ts b/src/core/settings/pages/about/about.ts index 1c339f5c1..373f0d90e 100644 --- a/src/core/settings/pages/about/about.ts +++ b/src/core/settings/pages/about/about.ts @@ -55,6 +55,8 @@ export class CoreSettingsAboutPage { storageType: string; localNotifAvailable: string; pushId: string; + siteUrl: string; + isPrefixedUrl: boolean; constructor(platform: Platform, device: Device, appProvider: CoreAppProvider, fileProvider: CoreFileProvider, initDelegate: CoreInitDelegate, langProvider: CoreLangProvider, sitesProvider: CoreSitesProvider, @@ -114,5 +116,9 @@ export class CoreSettingsAboutPage { this.localNotifAvailable = localNotificationsProvider.isAvailable() ? 'core.yes' : 'core.no'; this.pushId = pushNotificationsProvider.getPushId(); + + this.siteUrl = (currentSite && currentSite.getURL()) || + (typeof CoreConfigConstants.siteurl == 'string' && CoreConfigConstants.siteurl); + this.isPrefixedUrl = !!CoreConfigConstants.siteurl; } }