From b87982cd075d9f93b0b9916ef22968604038ecfd Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:09:21 +0000 Subject: [PATCH] fix(nc-gui): org role selector input display issue --- packages/nc-gui/assets/style.scss | 5 ++ .../nc-gui/components/account/UserList.vue | 68 +++++++++---------- .../nc-gui/components/account/UsersModal.vue | 57 ++++++++-------- 3 files changed, 69 insertions(+), 61 deletions(-) diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index f65a6f68f2..335b6199ba 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -684,6 +684,11 @@ a { @apply hidden; } +/* Hide the element with class nc-selected-item-icon */ +.ant-select-selection-item .nc-select-hide-item { + @apply hidden; +} + .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { @apply bg-transparent; } diff --git a/packages/nc-gui/components/account/UserList.vue b/packages/nc-gui/components/account/UserList.vue index ef6123c4d2..91642d897a 100644 --- a/packages/nc-gui/components/account/UserList.vue +++ b/packages/nc-gui/components/account/UserList.vue @@ -208,6 +208,19 @@ const columns = [ justify: 'justify-end', }, ] as NcTableColumnProps[] + +const userRoleOptions = [ + { + title: 'objects.roleType.orgLevelCreator', + subtitle: 'msg.info.roles.orgCreator', + value: OrgUserRoles.CREATOR, + }, + { + title: 'objects.roleType.orgLevelViewer', + subtitle: 'msg.info.roles.orgViewer', + value: OrgUserRoles.VIEWER, + }, +]