update codelyzer last version wit accessibility check

This commit is contained in:
Eugenio Romano
2019-03-26 17:05:03 +00:00
parent fbb6ab6cb8
commit 89f612bbb0
18 changed files with 150 additions and 126 deletions

View File

@@ -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() {