pleroma-fe/src/components/login_form/login_form.js

16 lines
255 B
JavaScript
Raw Normal View History

2016-10-28 03:02:41 +11:00
const LoginForm = {
data: () => ({
user: {}
}),
computed: {
loggingIn () { return this.$store.state.users.loggingIn }
},
methods: {
submit () {
this.$store.dispatch('loginUser', this.user)
}
}
}
export default LoginForm