Skip to content

Commit

Permalink
Merge pull request #441 from AuScope/AUS-4248
Browse files Browse the repository at this point in the history
AUS-4248 Removed addOnMap for NVCLAnalyticalJobs.
  • Loading branch information
stuartwoodman authored Sep 17, 2024
2 parents b4e814a + b536454 commit 2f63279
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ <h4 class="card-title">Borehole Analytics</h4>
<td>{{status.timeStamp}}</td>
<td>{{status.status}}</td>
<td *ngIf="status.status==='Success'" class="btn-col" style="white-space: nowrap">
<a class="btn btn-purple btn-xs" title="View this job on the map." (click) = "viewOnMap(status.jobid)"><i class="ti-map-alt"></i></a>
<a class="btn btn-light btn-xs" title="Download this job result." (click)="nvclDownload(status.jobid)"><i class="ti-download"></i></a>
<a class="btn btn-light btn-xs" title="Download the TSGMod data for this job. It is only for non-existing scalars, otherwise, the zip file will be empty." (click)="nvclDownloadData(status.jobid)"><i class="ti-zip"></i></a>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,4 @@ export class NVCLBoreholeAnalyticComponent
});
}

public viewOnMap(jobid: string) {
if (window.confirm('This action will link you to an external URL. Please ensure you have grant access to allow pop up from this domain.')) {
this.layer.filterCollection.mandatoryFilters[0].value = jobid;
// Make a state object
const state = this.manageStateService.generateOneOffState(
this.layer.id,
this.layer.filterCollection,
[]
);
// Store state object in DB & open up window
const uncompStateStr = JSON.stringify(state);
this.manageStateService.saveStateToDB(uncompStateStr).subscribe((response: any) => {
if (response.success === true) {
window.open(environment.hostUrl + '?state=' + response.id);
}
});
}
}
}

0 comments on commit 2f63279

Please sign in to comment.