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

Merge branch 'add-casa-version-field-to-restore-ui' into '2.8.4-DEVELOPMENT'

Added field for CASA version to WS UI under Restore

See merge request !1652
parents 26480f05 8a3f060f
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1652Added field for CASA version to WS UI under Restore
Pipeline #15523 passed
......@@ -120,6 +120,13 @@
(change)="setCalProductLocator($event.target.value)"/>
</div>
</div>
<div class="col-4">
<div class="md-form">
<label for="casaHome" class="">CASA Home</label>
<input type="text" id="casaHome" class="form-control"
[value]="casaHome" (change)="setCasaHome($event.target.value)"/>
</div>
</div>
<div class="col-3">
<div class="md-form">
<label for="userEmail" class="">Email Address</label>
......
......@@ -32,6 +32,7 @@ export class WsHomeComponent implements OnInit {
public productGroupId: number;
public calProductLocator: string;
public userEmail: string;
public casaHome: string;
public inputFileList: FileList;
public cmsPath: string;
public sdmId: string;
......@@ -45,6 +46,7 @@ export class WsHomeComponent implements OnInit {
// this is the famous 394 MB 13B-014 execblock, a useful smallish test
this.productLocator = "uid://evla/quicklook_image/f5610635-efe3-49b4-a281-3c0f871e7e5b";
this.userEmail = null;
this.casaHome = "/home/casa/packages/pipeline/production";
}
ngOnInit(): void {}
......@@ -117,6 +119,7 @@ export class WsHomeComponent implements OnInit {
product_locator: this.productLocator,
cal_locator: this.calProductLocator,
user_email: this.userEmail,
casa_home: this.casaHome,
});
}
......@@ -178,6 +181,14 @@ export class WsHomeComponent implements OnInit {
this.userEmail = email;
}
/**
* method to set the CASA home path for Restore Capability Requests
* @param casaHome: user-specified CASA Version
*/
setCasaHome(casaHome: string): void {
this.casaHome = casaHome;
}
/**
* Set files to be uploaded to variable
* @param inputFileList List of files from modal form
......
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