Skip to content

Commit

Permalink
Merge branch 'feat/email' of https://github.com/weni-ai/weni-integrat…
Browse files Browse the repository at this point in the history
…ions-webapp into staging
  • Loading branch information
acnormun committed Nov 1, 2024
2 parents ca9d31e + 01f22e3 commit 73d4cde
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions src/components/config/channels/email/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,22 @@
@click="closePopUp"
/>

<GoogleLogin prompt auto-login :callback="gmailCallback">
<unnnic-button
class="gmail-setup__buttons__continue"
size="large"
:text="$t('gmail.setup.buttons.continue')"
/>
</GoogleLogin>
<unnnic-button
class="gmail-setup__buttons__continue"
size="large"
:text="$t('gmail.setup.buttons.continue')"
@click="login"
/>
</div>
</template>
</unnnic-modal>
</template>

<script>
import { GoogleLogin } from 'vue3-google-login';
import { googleSdkLoaded } from 'vue3-google-login';
import getEnv from '../../../..//utils/env';
export default {
name: 'gmailSetup',
components: {
GoogleLogin,
},
data() {
return {
gmailCallback: (response) => console.log(response),

Check warning on line 38 in src/components/config/channels/email/Setup.vue

View workflow job for this annotation

GitHub Actions / lint-test-build

Unexpected console statement
Expand All @@ -45,6 +42,21 @@
closePopUp() {
this.$emit('closePopUp');
},
login() {
console.log('aloo');

Check warning on line 46 in src/components/config/channels/email/Setup.vue

View workflow job for this annotation

GitHub Actions / lint-test-build

Unexpected console statement
googleSdkLoaded((google) => {
google.accounts.oauth2
.initCodeClient({
client_id: getEnv('VITE_APP_GOOGLE_CLOUD_ID'),
scope: 'email profile openid',
redirect_uri: this.$route,
callback: (response) => {
console.log(response);

Check warning on line 54 in src/components/config/channels/email/Setup.vue

View workflow job for this annotation

GitHub Actions / lint-test-build

Unexpected console statement
},
})
.requestCode();
});
},
},
};
</script>
Expand Down

0 comments on commit 73d4cde

Please sign in to comment.