fix(editor): No need to add click emitting click events, VUE delegates the handler to the root element of the component (#7182)

This commit is contained in:
Csaba Tuncsik
2023-09-15 11:22:30 +02:00
committed by GitHub
parent c18ba370d5
commit 3c055e4d8d
2 changed files with 25 additions and 2 deletions

View File

@@ -1,11 +1,10 @@
<template>
<div :class="$style.container">
<GoogleAuthButton v-if="isGoogleOAuthType" @click.stop="$emit('click')" />
<GoogleAuthButton v-if="isGoogleOAuthType" />
<n8n-button
v-else
:label="$locale.baseText('credentialEdit.oAuthButton.connectMyAccount')"
size="large"
@click.stop="$emit('click')"
/>
</div>
</template>