Skip to content

Commit e6c51d5

Browse files
committed
feat(lit-wes): converted inputfield to dropdown for workflow type and version
re elixir-cloud-aai#180
1 parent 943282f commit e6c51d5

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

packages/ecc-client-lit-ga4gh-wes/src/API/Workflow/wesGet.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,10 @@ const postWorkflow = async (baseURL: string, data: any) => {
146146
}
147147
};
148148

149-
export { fetchWorkflows, fetchWorkflow, fetchWorkflowType, cancelWorkflow, postWorkflow };
149+
export {
150+
fetchWorkflows,
151+
fetchWorkflow,
152+
fetchWorkflowType,
153+
cancelWorkflow,
154+
postWorkflow,
155+
};

packages/ecc-client-lit-ga4gh-wes/src/components/wes-create-run/wes-create-run.ts

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { html, LitElement } from "lit";
2-
import { customElement, property, state } from "lit/decorators.js";
2+
import { property, state } from "lit/decorators.js";
33
import { postWorkflow, fetchWorkflowType } from "../../API/Workflow/wesGet.js";
44
import "@elixir-cloud/design";
55

66
// TODO: import the interface from the design package
7-
interface Field {
7+
export interface Field {
88
key: string;
99
label: string;
1010
type?:
@@ -44,8 +44,15 @@ interface Field {
4444
children?: Array<Field>;
4545
}
4646

47-
@customElement("ecc-client-lit-ga4gh-wes-create-run")
48-
export class WESCreateRun extends LitElement {
47+
/**
48+
* @summary This component is used to create task runs using WES API.
49+
* @since 1.0.0
50+
*
51+
* @property {string} baseURL - Base URL
52+
*
53+
*/
54+
55+
export default class ECCClientGa4ghWesCreateRuns extends LitElement {
4956
@state() private form: FormData = new FormData();
5057
@property({ type: String }) private baseURL =
5158
"https://prowes.rahtiapp.fi/ga4gh/wes/v1";

0 commit comments

Comments
 (0)