From d0a7189c76cb947dc18b8db9bf0a25587e981b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Fri, 12 May 2023 22:31:19 +1200 Subject: [PATCH] added todos --- .../user-groups/workspace/user-group-workspace.context.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts index 00746004b1..2f87b6fa58 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts @@ -70,6 +70,11 @@ export class UmbUserGroupWorkspaceContext await this.repository.save(this.#data.value.id, this.#data.value); } else return; + //TODO: This next user-group section kinda works. But it will overwrite the entire user-group list on the user. + //TODO: instead we need to get all the users by their id's to get their user groups. + //TODO: these user-groups need to be updated together with the new user-group id. + //TODO: or the new user-group id needs to be removed from the existing list. + const userIds = this.#userIds.getValue(); const userGroupIds = [this.#data.getValue()?.id ?? ''];