mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Prevent duplicate creation of credential for OAuth2 (#7163)
This PR solves the issue reported in [this ticket](https://linear.app/n8n/issue/PAY-825/click-to-connect-for-google-sheets-does-not-work-when-cred-is-not). Basically when trying to connect OAuth2 credentials, n8n would create the credential twice, possibly causing transaction issues. This PR prevents n8n from firing a duplicate creation request, effectively fixing the bug about duplicate creation.
This commit is contained in:
parent
c11dfbbe00
commit
07a6417f0f
|
@ -2,7 +2,6 @@
|
||||||
<button
|
<button
|
||||||
:class="$style.googleAuthBtn"
|
:class="$style.googleAuthBtn"
|
||||||
:title="$locale.baseText('credentialEdit.oAuthButton.signInWithGoogle')"
|
:title="$locale.baseText('credentialEdit.oAuthButton.signInWithGoogle')"
|
||||||
@click.stop.prevent="$emit('click')"
|
|
||||||
:style="googleAuthButtons"
|
:style="googleAuthButtons"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="$style.container">
|
<div :class="$style.container">
|
||||||
<GoogleAuthButton v-if="isGoogleOAuthType" @click="$emit('click')" />
|
<GoogleAuthButton v-if="isGoogleOAuthType" @click.stop="$emit('click')" />
|
||||||
<n8n-button
|
<n8n-button
|
||||||
v-else
|
v-else
|
||||||
:label="$locale.baseText('credentialEdit.oAuthButton.connectMyAccount')"
|
:label="$locale.baseText('credentialEdit.oAuthButton.connectMyAccount')"
|
||||||
|
|
Loading…
Reference in a new issue