mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
⚡ Generalize cred component positioning
This commit is contained in:
parent
cacd43f19c
commit
75eea89273
|
@ -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;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue