Skip to content
Snippets Groups Projects
Commit 27e915b7 authored by Sam Kagan's avatar Sam Kagan
Browse files

Responded to MR feedback

parent 3375c785
No related branches found
No related tags found
2 merge requests!32Merge 2.4.4 UI to main,!27WS-2901: Added QL-product link to SECI products
......@@ -49,13 +49,15 @@
{{qp.name}}
</a>
<ng-template #noQuicklook>
<em *ngIf="(loadingQlProduct$ | async) === true">
Loading...
</em>
<span *ngIf="(loadingQlProduct$ | async) === false">
<span *ngIf="(loadingQlProduct$ | async) === false; else loading">
Not Found
</span>
</ng-template>
<ng-template #loading>
<em>
Loading...
</em>
</ng-template>
</div>
<div class="mt-2" *ngIf="product.versions.length > 0">
......
......@@ -93,7 +93,14 @@ export class ProductDetailsComponent implements OnInit, OnChanges, OnDestroy {
// Checked on dev on 12/9/2024
if (currProduct.minitiles.length == 1) {
this.loadingQlProduct.next(true);
this.productService.getImageProductBy('quicklook', currProduct.minitiles[0].name, parseFloat(currProduct.phaseCenterRA), parseFloat(currProduct.phaseCenterDec), currProduct.epoch, currProduct.epochHalf).pipe(takeUntil(this.ngUnsubscribe)).subscribe(
this.productService.getImageProductBy(
'quicklook',
currProduct.minitiles[0].name,
parseFloat(currProduct.phaseCenterRA),
parseFloat(currProduct.phaseCenterDec),
currProduct.epoch,
currProduct.epochHalf
).pipe(takeUntil(this.ngUnsubscribe)).subscribe(
quicklookProduct => {
this.quicklookProduct.next(quicklookProduct);
this.loadingQlProduct.next(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment