MOBILE-3554 login: Add forceLoginLogo setting to avoid showing web logo
parent
37b0447cfe
commit
0e5c448a82
|
@ -97,6 +97,7 @@
|
|||
"enableanalytics": false,
|
||||
"enableonboarding": true,
|
||||
"forceColorScheme": "",
|
||||
"forceLoginLogo": false,
|
||||
"ioswebviewscheme": "moodleappfs",
|
||||
"appstores": {
|
||||
"android": "com.moodle.moodlemobile",
|
||||
|
|
|
@ -70,7 +70,7 @@ export class CoreLoginCredentialsPage {
|
|||
|
||||
this.siteUrl = navParams.get('siteUrl');
|
||||
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.urlToOpen = navParams.get('urlToOpen');
|
||||
|
||||
|
|
|
@ -412,7 +412,7 @@ export class CoreLoginHelperProvider {
|
|||
* @return Logo URL.
|
||||
*/
|
||||
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