diff --git a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts index da374b3..b9e9963 100644 --- a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts +++ b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts @@ -60,6 +60,7 @@ export abstract class AbstractSelectedItemComponent { event.preventDefault(); this.location.back(); } + } @Injectable() @@ -73,4 +74,8 @@ export class SelectedItemComponent extends AbstractSelectedItemComponent { constructor(store: Store, itemTypeService: ItemTypeService, location: Location, router: Router, public config:AppConfig) { super(store, itemTypeService,location,router); } + + getThumbnailUrl(item:IItem):string { + return this.config.getConfig('apiEndPoint') +'/api/v1/items/'+item.code+'/thumbnail?v=' + Date.parse(item.updated); + } }