fix(editor): Correctly show OAuth reconnect button (#5384)

This commit is contained in:
OlegIvaniv 2023-02-06 18:33:59 +01:00 committed by GitHub
parent 03afd3c7cf
commit 6482688ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,12 +40,12 @@
:buttonTitle="$locale.baseText('credentialEdit.credentialConfig.reconnectOAuth2Credential')"
@click="$emit('oauth')"
>
<template #button>
<template #button v-if="isGoogleOAuthType">
<p
v-text="`${$locale.baseText('credentialEdit.credentialConfig.reconnect')}:`"
:class="$style.googleReconnectLabel"
/>
<GoogleAuthButton v-if="isGoogleOAuthType" @click="$emit('oauth')" />
<GoogleAuthButton @click="$emit('oauth')" />
</template>
</banner>