-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: operation outputs #2276
feat: operation outputs #2276
Conversation
<span> | ||
<label> | ||
{{ getPortLabel(input) }} | ||
{{ input.isOptional ? '(optional)' : '' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be part of the getPortLabel()
function.
// Once dataset is selected | ||
if (isEmpty(props.node.outputs)) { | ||
emit('select-dataset', { id: dataset.value.id, name: dataset.value.name }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why we emit this event only when the outputs are empty?
<ul v-if="!isEmpty(outputs)"> | ||
<li | ||
v-for="(output, index) in outputs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the v-for
handling the case of an empty array?
Or is that outputs could be Just checked and the type forces an array, so I don't think the null
or undefined
?v-if="!isEmpty(outputs)"
is necessary.
@@ -136,10 +123,9 @@ function openInNewWindow() { | |||
floatingWindow.open(url); | |||
} | |||
|
|||
function mouseoverPort(event) { | |||
function mouseoverPort(event: MouseEvent, portDirection: 'input' | 'output') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if that portDirection
would be better to be an enum
to avoid typing issues.
Description
Screen.Recording.2023-11-20.at.6.35.36.PM.mov