drafted materio_sapi search block vue integration

This commit is contained in:
2019-05-31 15:01:54 +02:00
parent ea2fd59c63
commit a48b7262eb
29 changed files with 758 additions and 195 deletions

View File

@@ -1,29 +0,0 @@
<template lang="html">
<UserTools v-if="isloggedin" />
<Login v-bind:title="title" v-bind:form="form" v-else />
</template>
<script>
import { mapState, mapActions } from 'vuex'
import Login from 'vuejs/components/User/Login'
import UserTools from 'vuejs/components/User/UserTools'
export default {
props: ['title', 'form'],
computed: {
...mapState({
isloggedin: state => state.User.isloggedin
})
},
components: {
Login,
UserTools
}
}
</script>
<style lang="css" scoped>
</style>

View File

@@ -36,6 +36,7 @@ export default {
userLogout: 'User/userLogout'
}),
onLogout () {
console.log('UserTools onLogout');
this.userLogout()
}
}