From 4db2c4d65b42f7db4ff5d85aac2509a6b857d011 Mon Sep 17 00:00:00 2001 From: sliver Date: Sun, 31 Mar 2024 21:48:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=A7=E3=81=A3=E3=81=91=EF=BD=9E=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=E3=83=9C=E3=82=BF=E3=83=B3=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/user_panel/user_panel.js | 7 ++++++- src/components/user_panel/user_panel.vue | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/user_panel/user_panel.js b/src/components/user_panel/user_panel.js index c2f51eb6..094f2c2f 100644 --- a/src/components/user_panel/user_panel.js +++ b/src/components/user_panel/user_panel.js @@ -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, diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 243de387..3490fe17 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -10,7 +10,11 @@ :hide-bio="true" rounded="top" /> - + +