add to cart links for products in home
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
<template>
|
||||
<div id="login-register">
|
||||
<section class="login">
|
||||
<h3>{{ $t("default.Login") }} </h3>
|
||||
<LoginForm @onLogedIn="onLogedIn" />
|
||||
</section>
|
||||
<section class="register">
|
||||
<h3>{{ $t("default.Register a new account") }}</h3>
|
||||
<RegisterForm @onRegistered="onRegistered" />
|
||||
</section>
|
||||
<h2>{{ $t("materio.Please login or create a new account") }}</h2>
|
||||
<div class="wrapper">
|
||||
<section class="login">
|
||||
<h3>{{ $t("default.Login") }} </h3>
|
||||
<LoginForm @onLogedIn="onLogedIn" />
|
||||
</section>
|
||||
<section class="register">
|
||||
<h3>{{ $t("default.Register a new account") }}</h3>
|
||||
<RegisterForm @onRegistered="onRegistered" />
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -24,17 +27,19 @@ export default {
|
||||
password:null,
|
||||
registerEmail:null
|
||||
}),
|
||||
props:['callbackargs'],
|
||||
props:['callbackargs', 'onLogedInBack', 'onRegisteredBack'],
|
||||
methods: {
|
||||
...mapActions({
|
||||
userLogin: 'User/userLogin',
|
||||
userRegister: 'User/userRegister'
|
||||
}),
|
||||
onLogedIn () {
|
||||
this.$emit('onLogedIn', this.callbackargs)
|
||||
// this.$emit('onLogedIn', this.callbackargs)
|
||||
this.onLogedInBack(this.callbackargs)
|
||||
},
|
||||
onRegistered () {
|
||||
this.$emit('onRegistered', this.callbackargs)
|
||||
// this.$emit('onRegistered', this.callbackargs)
|
||||
this.onRegisteredBack(this.callbackargs)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
Reference in New Issue
Block a user