mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
41 lines
1.1 KiB
Vue
41 lines
1.1 KiB
Vue
<template>
|
|
<div v-if="config.allowedFacebookLogin || config.allowedGoogleLogin || config.allowedGithubLogin" class="flex items-center justify-center mb-10">
|
|
<div v-if="config.allowedFacebookLogin" class="mx-5 cursor-pointer">
|
|
<facebook-icon @click="socialiteRedirect('facebook')" />
|
|
</div>
|
|
|
|
<div v-if="config.allowedGithubLogin" class="mx-5 cursor-pointer">
|
|
<github-icon @click="socialiteRedirect('github')" />
|
|
</div>
|
|
|
|
<div v-if="config.allowedGoogleLogin" class="mx-5 cursor-pointer">
|
|
<span @click="socialiteRedirect('google')" class="font-semibold text-3xl">G</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { FacebookIcon, GithubIcon } from 'vue-feather-icons'
|
|
import {mapGetters} from "vuex";
|
|
|
|
export default {
|
|
name:'SocialiteAuthenticationButtons',
|
|
components: {
|
|
FacebookIcon,
|
|
GithubIcon,
|
|
},
|
|
computed: {
|
|
...mapGetters([
|
|
'config'
|
|
])
|
|
},
|
|
methods: {
|
|
socialiteRedirect(provider) {
|
|
this.isLoading = true
|
|
|
|
this.$store.dispatch('socialiteRedirect', provider)
|
|
},
|
|
}
|
|
}
|
|
</script>
|