mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
43 lines
774 B
Vue
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>
|