From 5f58bbdccb6da4845df1be45c32ab01ebfa68011 Mon Sep 17 00:00:00 2001 From: pallavibakale Date: Mon, 8 Jun 2026 13:30:21 -0400 Subject: [PATCH 1/4] fix(teams): restore selectedGroup on circle/user_group routes to fix "Unable to create contact" error (#5257) Signed-off-by: pallavibakale --- src/mixins/RouterMixin.js | 44 +- src/views/Contacts.vue | 882 ++++++++++++++++++++------------------ 2 files changed, 495 insertions(+), 431 deletions(-) diff --git a/src/mixins/RouterMixin.js b/src/mixins/RouterMixin.js index e88635ff32..abe659a72c 100644 --- a/src/mixins/RouterMixin.js +++ b/src/mixins/RouterMixin.js @@ -2,23 +2,29 @@ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ + +import { ROUTE_CIRCLE, ROUTE_USER_GROUP } from '../models/constants.ts'; + export default { - computed: { - // router variables - selectedContact() { - return this.$route.params.selectedContact - }, - selectedGroup() { - return this.$route.params.selectedGroup - }, - selectedCircle() { - return this.$route.params.selectedCircle - }, - selectedUserGroup() { - return this.$route.params.selectedUserGroup - }, - selectedChart() { - return this.$route.params.selectedChart - }, - }, -} + computed: { + // router variables + selectedContact() { + return this.$route.params.selectedContact; + }, + selectedGroup() { + const { name } = this.$route; + if (name === 'circle') return ROUTE_CIRCLE; + if (name === 'user_group') return ROUTE_USER_GROUP; + return this.$route.params.selectedGroup; + }, + selectedCircle() { + return this.$route.params.selectedCircle; + }, + selectedUserGroup() { + return this.$route.params.selectedUserGroup; + }, + selectedChart() { + return this.$route.params.selectedChart; + }, + }, +}; diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index 9def24512d..424f8e7dfe 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -4,431 +4,489 @@ --> From 41b2540ed3342ba0d4e2347036c982b824af9b51 Mon Sep 17 00:00:00 2001 From: pallavibakale Date: Thu, 11 Jun 2026 11:36:34 -0400 Subject: [PATCH 2/4] fix: linting errors Signed-off-by: pallavibakale --- src/mixins/RouterMixin.js | 46 +- src/views/Contacts.vue | 906 +++++++++++++++++++------------------- 2 files changed, 464 insertions(+), 488 deletions(-) diff --git a/src/mixins/RouterMixin.js b/src/mixins/RouterMixin.js index abe659a72c..cb816a0a25 100644 --- a/src/mixins/RouterMixin.js +++ b/src/mixins/RouterMixin.js @@ -3,28 +3,28 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { ROUTE_CIRCLE, ROUTE_USER_GROUP } from '../models/constants.ts'; +import { ROUTE_CIRCLE, ROUTE_USER_GROUP } from '../models/constants.ts' export default { - computed: { - // router variables - selectedContact() { - return this.$route.params.selectedContact; - }, - selectedGroup() { - const { name } = this.$route; - if (name === 'circle') return ROUTE_CIRCLE; - if (name === 'user_group') return ROUTE_USER_GROUP; - return this.$route.params.selectedGroup; - }, - selectedCircle() { - return this.$route.params.selectedCircle; - }, - selectedUserGroup() { - return this.$route.params.selectedUserGroup; - }, - selectedChart() { - return this.$route.params.selectedChart; - }, - }, -}; + computed: { + // router variables + selectedContact() { + return this.$route.params.selectedContact + }, + selectedGroup() { + const { name } = this.$route + if (name === 'circle') { return ROUTE_CIRCLE } + if (name === 'user_group') { return ROUTE_USER_GROUP } + return this.$route.params.selectedGroup + }, + selectedCircle() { + return this.$route.params.selectedCircle + }, + selectedUserGroup() { + return this.$route.params.selectedUserGroup + }, + selectedChart() { + return this.$route.params.selectedChart + }, + }, +} diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index 424f8e7dfe..2877cf2fce 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -4,483 +4,459 @@ --> From 9651edcb4c71c244c627d93b123752fa17627b2b Mon Sep 17 00:00:00 2001 From: pallavibakale Date: Thu, 18 Jun 2026 11:53:00 -0400 Subject: [PATCH 4/4] fix: linting issues Signed-off-by: pallavibakale --- src/mixins/RouterMixin.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mixins/RouterMixin.js b/src/mixins/RouterMixin.js index cb816a0a25..c71791400a 100644 --- a/src/mixins/RouterMixin.js +++ b/src/mixins/RouterMixin.js @@ -13,8 +13,12 @@ export default { }, selectedGroup() { const { name } = this.$route - if (name === 'circle') { return ROUTE_CIRCLE } - if (name === 'user_group') { return ROUTE_USER_GROUP } + if (name === 'circle') { + return ROUTE_CIRCLE + } + if (name === 'user_group') { + return ROUTE_USER_GROUP + } return this.$route.params.selectedGroup }, selectedCircle() {