diff options
Diffstat (limited to 'src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue')
-rw-r--r-- | src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue b/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue index df32e225c..c8878799f 100644 --- a/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue +++ b/src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue @@ -226,9 +226,11 @@ export default { this.showModal() }, - /** Reinitialise the component to it's initial state. This is necessary + /** + * Reinitialise the component to it's initial state. This is necessary * because once the component is mounted it's data would persist even if - * the modal closes */ + * the modal closes + */ closeModal() { this.modal = false this.page = 0 @@ -251,8 +253,10 @@ export default { handleClickBack() { this.page = 0 }, - /** Handles the creation of the group conversation, adds the seleced - * participants to it and routes to it */ + /** + * Handles the creation of the group conversation, adds the seleced + * participants to it and routes to it + */ async handleCreateConversation() { this.page = 2 @@ -320,16 +324,20 @@ export default { this.closeModal() } }, - /** Creates a new private conversation, adds it to the store and sets - * the local token value to the newly created conversation's token */ + /** + * Creates a new private conversation, adds it to the store and sets + * the local token value to the newly created conversation's token + */ async createPrivateConversation() { const response = await createPrivateConversation(this.conversationName) const conversation = response.data.ocs.data this.$store.dispatch('addConversation', conversation) this.token = conversation.token }, - /** Creates a new public conversation, adds it to the store and sets - * the local token value to the newly created conversation's token */ + /** + * Creates a new public conversation, adds it to the store and sets + * the local token value to the newly created conversation's token + */ async createPublicConversation() { const response = await createPublicConversation(this.conversationName) const conversation = response.data.ocs.data |