Merge pull request #2535 from crazyserver/MOBILE-3554
MOBILE-3554 login: Add forceLoginLogo setting to avoid showing web logomain
commit
ebaa8be899
|
@ -98,6 +98,7 @@
|
||||||
"enableanalytics": false,
|
"enableanalytics": false,
|
||||||
"enableonboarding": true,
|
"enableonboarding": true,
|
||||||
"forceColorScheme": "",
|
"forceColorScheme": "",
|
||||||
|
"forceLoginLogo": false,
|
||||||
"ioswebviewscheme": "moodleappfs",
|
"ioswebviewscheme": "moodleappfs",
|
||||||
"appstores": {
|
"appstores": {
|
||||||
"android": "com.moodle.moodlemobile",
|
"android": "com.moodle.moodlemobile",
|
||||||
|
|
|
@ -70,7 +70,7 @@ export class CoreLoginCredentialsPage {
|
||||||
|
|
||||||
this.siteUrl = navParams.get('siteUrl');
|
this.siteUrl = navParams.get('siteUrl');
|
||||||
this.siteName = navParams.get('siteName') || null;
|
this.siteName = navParams.get('siteName') || null;
|
||||||
this.logoUrl = navParams.get('logoUrl') || null;
|
this.logoUrl = !CoreConfigConstants.forceLoginLogo && navParams.get('logoUrl') || null;
|
||||||
this.siteConfig = navParams.get('siteConfig');
|
this.siteConfig = navParams.get('siteConfig');
|
||||||
this.urlToOpen = navParams.get('urlToOpen');
|
this.urlToOpen = navParams.get('urlToOpen');
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,7 @@ export class CoreLoginHelperProvider {
|
||||||
* @return Logo URL.
|
* @return Logo URL.
|
||||||
*/
|
*/
|
||||||
getLogoUrl(config: any): string {
|
getLogoUrl(config: any): string {
|
||||||
return config ? (config.logourl || config.compactlogourl) : null;
|
return !CoreConfigConstants.forceLoginLogo && config ? (config.logourl || config.compactlogourl) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue