mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 04:43:11 +08:00
Properish typing of invalid workflow editor nodes.
Cleans up Vue TSC errors in Node.vue.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
ref="el"
|
||||
class="workflow-node card"
|
||||
:scale="scale"
|
||||
:root-offset="rootOffset"
|
||||
:root-offset="reactive(rootOffset)"
|
||||
:position="position"
|
||||
:name="name"
|
||||
:node-label="title"
|
||||
@@ -118,7 +118,7 @@
|
||||
:root-offset="rootOffset"
|
||||
:scroll="scroll"
|
||||
:scale="scale"
|
||||
:parent-node="elHtml"
|
||||
:parent-node="elHtml ?? undefined"
|
||||
:readonly="readonly"
|
||||
@onChange="onChange" />
|
||||
<div v-if="!isInvocation && showRule" class="rule" />
|
||||
@@ -164,7 +164,7 @@ import type { GraphStep } from "@/composables/useInvocationGraph";
|
||||
import { useWorkflowStores } from "@/composables/workflowStores";
|
||||
import type { TerminalPosition, XYPosition } from "@/stores/workflowEditorStateStore";
|
||||
import { useWorkflowNodeInspectorStore } from "@/stores/workflowNodeInspectorStore";
|
||||
import type { Step } from "@/stores/workflowStepStore";
|
||||
import type { InputTerminalSource, OutputTerminalSource, Step } from "@/stores/workflowStepStore";
|
||||
import { composedPartialPath, isClickable } from "@/utils/dom";
|
||||
|
||||
import { ToggleStepSelectedAction } from "./Actions/stepActions";
|
||||
@@ -281,7 +281,16 @@ const inputs = computed(() => {
|
||||
});
|
||||
const invalidInputNames = [...new Set(unknownInputs)];
|
||||
const invalidInputTerminalSource = invalidInputNames.map((name) => {
|
||||
return { name, optional: false, extensions: [], valid: false, input_type: "dataset" };
|
||||
const invalidInput: InputTerminalSource = {
|
||||
name,
|
||||
label: name,
|
||||
multiple: false,
|
||||
optional: false,
|
||||
extensions: [],
|
||||
valid: false,
|
||||
input_type: "dataset",
|
||||
};
|
||||
return invalidInput;
|
||||
});
|
||||
return [...stepInputs, ...invalidInputTerminalSource];
|
||||
});
|
||||
@@ -295,7 +304,13 @@ const invalidOutputs = computed(() => {
|
||||
);
|
||||
const invalidOutputNames = [...new Set(invalidConnections.map((connection) => connection.output.name))];
|
||||
return invalidOutputNames.map((name) => {
|
||||
return { name, optional: false, datatypes: [], valid: false };
|
||||
const invalidOutput: OutputTerminalSource = {
|
||||
name,
|
||||
optional: false,
|
||||
valid: false,
|
||||
extensions: [],
|
||||
};
|
||||
return invalidOutput;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ export interface PostJobActions {
|
||||
}
|
||||
|
||||
export interface DataOutput {
|
||||
valid?: boolean;
|
||||
extensions: string[];
|
||||
name: string;
|
||||
optional: boolean;
|
||||
|
||||
Reference in New Issue
Block a user