[ADF-4225] Viewer extension accept multiple file type (#4427)

* viewer extension can target multiple types.

* fix lint
This commit is contained in:
Eugenio Romano
2019-03-12 21:18:09 +00:00
committed by GitHub
parent 5fc05da7aa
commit 3136580bba
7 changed files with 148 additions and 6 deletions

View File

@@ -196,10 +196,9 @@
</ng-container>
<ng-container *ngSwitchCase="'custom'">
<ng-container *ngFor="let ext of viewerExtensions">
<adf-preview-extension
*ngIf="extension === ext.fileExtension"
*ngIf="checkExtensions(ext.fileExtension)"
[id]="ext.component"
[node]="nodeEntry.entry"
[url]="urlFileContent"