Skip to content
Snippets Groups Projects
Commit 1acbeae2 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

Merge branch 'fixing-full-ui-launching' into '2.8.2.3-DEVELOPMENT'

fix ui launch parameters for full curation

See merge request !1591
parents b576acc6 06b13ed6
No related branches found
No related tags found
3 merge requests!1606catch 2.8.3 up with main,!1605Merge 2.8.2.3 work to main,!1591fix ui launch parameters for full curation
Pipeline #14588 passed
......@@ -29,6 +29,7 @@ import {CapabilityRequest} from "../model/capability-request";
})
export class WsHomeComponent implements OnInit {
public productLocator: string;
public productGroupId: number;
public calProductLocator: string;
public userEmail: string;
public inputFileList: FileList;
......@@ -128,21 +129,37 @@ export class WsHomeComponent implements OnInit {
* - User email
*/
LaunchCuratorCapabilityOnClick(curatorType: string): void {
this.launchCapability('curator', {
curator_type: curatorType,
product_locator: this.productLocator,
data_location: this.dataLocation,
target_list: this.targetList,
user_email: this.userEmail,
});
let parameters;
if (curatorType == "full"){
parameters = {
curator_type: curatorType,
product_group_id: this.productGroupId,
data_src: this.dataLocation,
user_email: this.userEmail,
}
} else {
parameters = {
curator_type: curatorType,
product_locator: this.productLocator,
data_src: this.dataLocation,
target_list: this.targetList,
user_email: this.userEmail,
}
}
this.launchCapability('curator', parameters);
}
/**
* method that sets the user input Science Product Locator for the download capability
* @param spl the Science Product Locator to download
*/
setProductLocator(spl: string): void {
this.productLocator = spl;
setProductLocator(spl: string | number): void {
if (Number(spl)) {
this.productGroupId = Number(spl);
} else {
this.productLocator = String(spl);
}
}
/**
......
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