aboutsummaryrefslogtreecommitdiff
path: root/src/components/login_form/login_form.js
blob: 827c704c3c94ac79ff30cd1a39991814321b3d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const LoginForm = {
  data: () => ({
    user: {}
  }),
  computed: {
    loggingIn () { return this.$store.state.users.loggingIn }
  },
  methods: {
    submit () {
      this.$store.dispatch('loginUser', this.user)
    }
  }
}

export default LoginForm