mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix icon clashes in adf-icon (#4258)
This commit is contained in:
committed by
Eugenio Romano
parent
f00fd1ad01
commit
3a5fe3fb92
@@ -21,7 +21,6 @@ import {
|
||||
ViewEncapsulation,
|
||||
ChangeDetectionStrategy
|
||||
} from '@angular/core';
|
||||
import { ThumbnailService } from '../services/thumbnail.service';
|
||||
import { ThemePalette } from '@angular/material';
|
||||
|
||||
@Component({
|
||||
@@ -47,14 +46,10 @@ export class IconComponent {
|
||||
@Input()
|
||||
set value(value: string) {
|
||||
this._value = value || 'settings';
|
||||
this._isCustom =
|
||||
this._value.includes(':') ||
|
||||
this.thumbnailService.mimeTypeIcons[value];
|
||||
this._isCustom = this._value.includes(':');
|
||||
}
|
||||
|
||||
get isCustom(): boolean {
|
||||
return this._isCustom;
|
||||
}
|
||||
|
||||
constructor(private thumbnailService: ThumbnailService) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user