This commit is contained in:
parent
ad11de53af
commit
2920fd82f1
@ -15,7 +15,7 @@ export abstract class AbstractSelectedItemComponent {
|
||||
|
||||
handleOnView(item: IItem) {
|
||||
if (this.itemTypeService.hasViewer(item)) {
|
||||
let viewer = this.itemTypeService.itemTypes[item.itemType];
|
||||
let viewer = this.itemTypeService.itemTypes[item.itemType].viewer;
|
||||
let url = `/viewer/${viewer}/item/${item.code}`;
|
||||
this.router.navigate([url]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user