fix(auth): initialize Hello for social

fixes #9460
This commit is contained in:
Sabe Jones
2018-02-20 21:15:36 +00:00
parent b0974fc4fc
commit 416c24d1e2

View File

@@ -111,7 +111,6 @@
div
ul.list-inline
li(v-for='network in SOCIAL_AUTH_NETWORKS')
// @TODO this is broken
button.btn.btn-primary(v-if='!user.auth[network.key].id', @click='socialAuth(network.key, user)') {{ $t('registerWithSocial', {network: network.name}) }}
button.btn.btn-primary(disabled='disabled', v-if='!hasBackupAuthOption(network.key) && user.auth[network.key].id') {{ $t('registeredWithSocial', {network: network.name}) }}
button.btn.btn-danger(@click='deleteSocialAuth(network.key)', v-if='hasBackupAuthOption(network.key) && user.auth[network.key].id') {{ $t('detachSocial', {network: network.name}) }}
@@ -239,6 +238,10 @@ export default {
// @TODO: We may need to request the party here
this.party = this.$store.state.party;
this.newDayStart = this.user.preferences.dayStart;
hello.init({
facebook: process.env.FACEBOOK_KEY, // eslint-disable line
google: process.env.GOOGLE_CLIENT_ID, // eslint-disable line
});
},
computed: {
...mapState({