でっけ~投稿ボタン化

This commit is contained in:
sliver 2024-03-31 21:48:18 +09:00
parent cafaf22f6a
commit 4db2c4d65b
2 changed files with 11 additions and 2 deletions

View file

@ -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,

View file

@ -10,7 +10,11 @@
:hide-bio="true"
rounded="top"
/>
<PostStatusForm />
<!-- <PostStatusForm /> -->
<button
class="button-default"
@click="openPostForm"
>投稿</button>
</div>
<auth-form
v-else