|
@@ -11,16 +11,19 @@ export class Purchase {
|
|
|
@Input() timestamp: string;
|
|
@Input() timestamp: string;
|
|
|
@Input() extent: Extent;
|
|
@Input() extent: Extent;
|
|
|
@Input() amount: number;
|
|
@Input() amount: number;
|
|
|
|
|
+ @Input() user: string;
|
|
|
|
|
|
|
|
expanded: boolean = false;
|
|
expanded: boolean = false;
|
|
|
loadingData: boolean = false;
|
|
loadingData: boolean = false;
|
|
|
|
|
|
|
|
- constructor(bcInfoService: BcInfoService) {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ constructor(private bcInfoService: BcInfoService) {}
|
|
|
|
|
|
|
|
|
|
+ async onRequestData(): Promise<void> {
|
|
|
|
|
+ this.loadingData = true;
|
|
|
|
|
|
|
|
- onRequestData() {
|
|
|
|
|
- window.open("https://eo.lesprojekt.cz/produkty/S2/2020/S2A_MSIL2A_20200422T095031_N9999_R079_T33UXQ_20201127T165009_NDVI.tif");
|
|
|
|
|
|
|
+ let dataUrl = await this.bcInfoService.requestData(this.hash, this.user);
|
|
|
|
|
+ window.open(dataUrl);
|
|
|
|
|
+
|
|
|
|
|
+ this.loadingData = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|