Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-02-03 15:49:50 +0300
committerGitHub <noreply@github.com>2021-02-03 15:49:50 +0300
commit8b85e60096fe093969ee48b4776f3e75777e07aa (patch)
tree5a4331c2cf5a94b63a2c9fd07403b85d3f575f8c
parent4fe627faea69fb99882a2cf6d6ce9800f5795092 (diff)
parentde19e51b8f5b1f641184f33a20984ad0567489a9 (diff)
Merge pull request #5071 from nextcloud/fix-new-conversation-dialog-when-no-item-is-selected
Fix new conversation dialog when no item is selected
-rw-r--r--src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue b/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue
index c74acdc66..6c1b828df 100644
--- a/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue
+++ b/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue
@@ -204,21 +204,26 @@ export default {
},
mounted() {
- EventBus.$on('NewGroupConversationDialog', this.showModal)
+ EventBus.$on('NewGroupConversationDialog', this.showModalForItem)
},
destroyed() {
- EventBus.$off('NewGroupConversationDialog', this.showModal)
+ EventBus.$off('NewGroupConversationDialog', this.showModalForItem)
},
methods: {
- showModal(item) {
+ showModal() {
+ this.modal = true
+ },
+
+ showModalForItem(item) {
if (item) {
// Preload the conversation name from group selection
this.conversationNameInput = item.label
this.$store.dispatch('updateSelectedParticipants', item)
}
- this.modal = true
+
+ this.showModal()
},
/** Reinitialise the component to it's initial state. This is necessary
* because once the component is mounted it's data would persist even if