Generalize cred component positioning

This commit is contained in:
Iván Ovejero 2022-05-04 12:39:19 +02:00
parent cacd43f19c
commit 75eea89273

View file

@ -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;
},
},