Skip to content

Commit

Permalink
⚡ Generalize cred component positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 4, 2022
1 parent cacd43f commit 75eea89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/editor-ui/src/components/ParameterInputList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,18 @@ export default mixins(
return this.$store.getters.activeNode;
},
indexToShowSlotAt (): number {
if (this.node.type === HTTP_REQUEST_NODE_TYPE && this.node.typeVersion === 2) {
// edge cases: credential with two dependencies
if (
(this.node.type === HTTP_REQUEST_NODE_TYPE && this.node.typeVersion === 2) ||
this.node.type === 'n8n-nodes-base.sentryIo'
) {
return 2;
}
if (this.nodeValues.parameters.authentication !== undefined) {
return 1;
}
return 0;
},
},
Expand Down

0 comments on commit 75eea89

Please sign in to comment.