Files
n8n-enterprise-unlocked/packages/editor-ui/src/components/CredentialEdit/OauthButton.vue
Iván Ovejero 1d991824d1 🚚 Rename $i to $locale
2021-12-15 13:16:53 +01:00

43 lines
774 B
Vue

<template>
<span>
<img
v-if="isGoogleOAuthType"
:src="basePath + 'google-signin-light.png'"
:class="$style.googleIcon"
:alt="$locale.baseText('credentialEdit.oAuthButton.signInWithGoogle')"
@click.stop="$emit('click')"
/>
<n8n-button
v-else
:label="$locale.baseText('credentialEdit.oAuthButton.connectMyAccount')"
size="large"
@click.stop="$emit('click')"
/>
</span>
</template>
<script lang="ts">
import Vue from 'vue';
import mixins from 'vue-typed-mixins';
export default Vue.extend({
props: {
isGoogleOAuthType: {
type: Boolean,
},
},
computed: {
basePath(): string {
return this.$store.getters.getBaseUrl;
},
},
});
</script>
<style module lang="scss">
.googleIcon {
width: 191px;
cursor: pointer;
}
</style>