From 35749a7d8561446968e0c6c1eb6d795c1d3836de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Schauer-K=C3=B6ckeis?= Date: Mon, 7 Oct 2024 14:15:09 +0200 Subject: [PATCH] Add Oidc user to team view, as the others are to MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Schauer-Köckeis --- .../administration/accessmanagement/Teams.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/administration/accessmanagement/Teams.vue b/src/views/administration/accessmanagement/Teams.vue index 4621bea89..cc564ce2e 100644 --- a/src/views/administration/accessmanagement/Teams.vue +++ b/src/views/administration/accessmanagement/Teams.vue @@ -90,6 +90,9 @@ export default { if (row.ldapUsers) { count += row.ldapUsers.length; } + if (row.oidcUsers) { + count += row.oidcUsers.length; + } return count; }, }, @@ -168,6 +171,13 @@ export default { + +
+ + + +
+
{{ $t('admin.delete_team') }}
@@ -197,6 +207,7 @@ export default { mappedOidcGroups: row.mappedOidcGroups, managedUsers: row.managedUsers, ldapUsers: row.ldapUsers, + oidcUsers: row.oidcUsers, labelIcon: { dataOn: '\u2713', dataOff: '\u2715', @@ -433,6 +444,15 @@ export default { } this.ldapUsers = k; } + if (this.oidcUsers) { + let k = []; + for (let i = 0; i < this.oidcUsers.length; i++) { + if (this.oidcUsers[i].username !== user.username) { + k.push(this.oidcUsers[i]); + } + } + this.oidcUsers = k; + } this.$toastr.s(this.$t('message.updated')); }) .catch((error) => {