mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
update codelyzer last version wit accessibility check
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
(touchend)="elementClicked(item)">
|
||||
<!-- This is a comment -->
|
||||
<mat-icon mat-list-icon>
|
||||
<img [src]="getMimeTypeIcon(item)"/>
|
||||
<img [alt]="getMimeType(item)" [src]="getMimeTypeIcon(item)"/>
|
||||
</mat-icon>
|
||||
<h4 mat-line id="result_name_{{idx}}"
|
||||
*ngIf="highlight; else elseBlock"
|
||||
|
@@ -174,14 +174,21 @@ export class SearchControlComponent implements OnInit, OnDestroy {
|
||||
getMimeTypeIcon(node: NodeEntry): string {
|
||||
let mimeType;
|
||||
|
||||
mimeType = this.getMimeType(node);
|
||||
|
||||
return this.thumbnailService.getMimeTypeIcon(mimeType);
|
||||
}
|
||||
|
||||
private getMimeType(node: NodeEntry) {
|
||||
let mimeType;
|
||||
|
||||
if (node.entry.content && node.entry.content.mimeType) {
|
||||
mimeType = node.entry.content.mimeType;
|
||||
}
|
||||
if (node.entry.isFolder) {
|
||||
mimeType = 'folder';
|
||||
}
|
||||
|
||||
return this.thumbnailService.getMimeTypeIcon(mimeType);
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
isSearchBarActive() {
|
||||
|
Reference in New Issue
Block a user