drafted materio_sapi search block vue integration
This commit is contained in:
@@ -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>
|
@@ -36,6 +36,7 @@ export default {
|
||||
userLogout: 'User/userLogout'
|
||||
}),
|
||||
onLogout () {
|
||||
console.log('UserTools onLogout');
|
||||
this.userLogout()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user