Merge pull request #4082 from crazyserver/MOBILE-4470
MOBILE-4470 icon: Add a forced exception for BBB on version 4.0
This commit is contained in:
		
						commit
						7fd9fbeb09
					
				| @ -134,21 +134,25 @@ export class CoreModIconComponent implements OnInit, OnChanges { | |||||||
|         // Reset the branded class to the original value.
 |         // Reset the branded class to the original value.
 | ||||||
|         this.brandedClass = this.isBranded; |         this.brandedClass = this.isBranded; | ||||||
| 
 | 
 | ||||||
|         // No icon or local icon (not legacy), colorize it.
 |  | ||||||
|         if (!this.iconUrl() || this.isLocalUrl()) { |  | ||||||
|         // Exception for bigbluebuttonbn, it's the only one that has a branded icon.
 |         // Exception for bigbluebuttonbn, it's the only one that has a branded icon.
 | ||||||
|         if (this.iconVersion === IconVersion.VERSION_4_0 && this.modname === 'bigbluebuttonbn') { |         if (this.iconVersion === IconVersion.VERSION_4_0 && this.modname === 'bigbluebuttonbn') { | ||||||
|  |             // Known issue, if the icon is overriden by theme it won't be colorized.
 | ||||||
|             this.brandedClass = true; |             this.brandedClass = true; | ||||||
| 
 | 
 | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         // No icon or local icon (not legacy), colorize it.
 | ||||||
|  |         if (!this.iconUrl() || this.isLocalUrl()) { | ||||||
|             this.brandedClass ??= false; |             this.brandedClass ??= false; | ||||||
| 
 | 
 | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         this.iconUrl.update(value => CoreTextUtils.decodeHTMLEntities(value)); |         this.iconUrl.update(value => CoreTextUtils.decodeHTMLEntities(value)); | ||||||
|  |         if (this.brandedClass !== undefined) { | ||||||
|  |             return; | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         // If it's an Moodle Theme icon, check if filtericon is set and use it.
 |         // If it's an Moodle Theme icon, check if filtericon is set and use it.
 | ||||||
|         if (CoreUrlUtils.isThemeImageUrl(this.iconUrl())) { |         if (CoreUrlUtils.isThemeImageUrl(this.iconUrl())) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user