diff options
| author | Mark Felder <feld@FreeBSD.org> | 2020-07-13 13:25:23 -0500 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2020-07-13 13:25:23 -0500 |
| commit | da94935aaa18f16ac7fbe715c4610427d68ccf72 (patch) | |
| tree | 52691b7cbac2773858b245e596d56c1c5e6ea74b /src/components/account_actions/account_actions.js | |
| parent | 2eda3d687e8c986a982057c6f5eb969aa8d403d5 (diff) | |
| parent | 3e09a708f600b47dde831eeddb412828b38a0cf4 (diff) | |
Merge branch 'develop' into refactor/notification_settings
Diffstat (limited to 'src/components/account_actions/account_actions.js')
| -rw-r--r-- | src/components/account_actions/account_actions.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/account_actions/account_actions.js b/src/components/account_actions/account_actions.js index 0826c275..6d345bc7 100644 --- a/src/components/account_actions/account_actions.js +++ b/src/components/account_actions/account_actions.js @@ -1,3 +1,4 @@ +import { mapState } from 'vuex' import ProgressButton from '../progress_button/progress_button.vue' import Popover from '../popover/popover.vue' @@ -27,7 +28,18 @@ const AccountActions = { }, reportUser () { this.$store.dispatch('openUserReportingModal', this.user.id) + }, + openChat () { + this.$router.push({ + name: 'chat', + params: { recipient_id: this.user.id } + }) } + }, + computed: { + ...mapState({ + pleromaChatMessagesAvailable: state => state.instance.pleromaChatMessagesAvailable + }) } } |
