diff options
Diffstat (limited to 'src/components/LeftSidebar/LeftSidebar.vue')
-rw-r--r-- | src/components/LeftSidebar/LeftSidebar.vue | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue index 7a6d7ec17..2eb9a233b 100644 --- a/src/components/LeftSidebar/LeftSidebar.vue +++ b/src/components/LeftSidebar/LeftSidebar.vue @@ -33,13 +33,15 @@ <!-- Options --> <NcActions> - <NcActionButton close-after-click - @click="insertValue(t('spreed','is:unread'))"> + <NcActionButton v-if="canStartConversations" + close-after-click + @click="toggleNewGroupConversation(true)"> <template #icon> - <MessageBadge :size="20" /> + <PlusIcon :size="20" /> </template> - {{ t('spreed','Filter unread messages') }} + {{ t('spreed','Create a new conversation') }} </NcActionButton> + <NcActionButton close-after-click @click="insertValue(t('spreed','is:mentioned'))"> <template #icon> @@ -47,18 +49,19 @@ </template> {{ t('spreed','Filter unread mentions') }} </NcActionButton> - <NcActionButton v-if="canStartConversations" - close-after-click - @click="toggleNewGroupConversation(true)"> + + <NcActionButton close-after-click + @click="insertValue(t('spreed','is:unread'))"> <template #icon> - <PlusIcon :size="20" /> + <MessageBadge :size="20" /> </template> - {{ t('spreed','Create a new conversation') }} + {{ t('spreed','Filter unread messages') }} </NcActionButton> </NcActions> <!-- New Conversation --> - <NewGroupConversation :show-modal="isNewGroupConversationOpen" + <NewGroupConversation ref="newGroupConversation" + :show-modal="isNewGroupConversationOpen" @open-modal="toggleNewGroupConversation(true)" @close-modal="toggleNewGroupConversation(false)" /> </div> @@ -471,8 +474,9 @@ export default { params: { token: conversation.token }, }).catch(err => console.debug(`Error while pushing the new conversation's route: ${err}`)) } else { - // For other types we start the conversation creation dialog - EventBus.$emit('new-group-conversation-dialog', item) + // For other types, show the modal directly + this.$refs.newGroupConversation.showModalForItem(item) + this.toggleNewGroupConversation(true) } }, |