forked from AkkomaGang/akkoma-fe
でっけ~投稿ボタン化
This commit is contained in:
parent
cafaf22f6a
commit
4db2c4d65b
2 changed files with 11 additions and 2 deletions
|
@ -6,7 +6,12 @@ import { mapState } from 'vuex'
|
|||
const UserPanel = {
|
||||
computed: {
|
||||
signedIn () { return this.user },
|
||||
...mapState({ user: state => state.users.currentUser })
|
||||
...mapState({ user: state => state.users.currentUser }),
|
||||
},
|
||||
methods: {
|
||||
openPostForm () {
|
||||
this.$store.dispatch('openPostStatusModal')
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AuthForm,
|
||||
|
|
|
@ -10,7 +10,11 @@
|
|||
:hide-bio="true"
|
||||
rounded="top"
|
||||
/>
|
||||
<PostStatusForm />
|
||||
<!-- <PostStatusForm /> -->
|
||||
<button
|
||||
class="button-default"
|
||||
@click="openPostForm"
|
||||
>投稿</button>
|
||||
</div>
|
||||
<auth-form
|
||||
v-else
|
||||
|
|
Loading…
Reference in a new issue