-
Notifications
You must be signed in to change notification settings - Fork 495
dbeaver/pro#4503 migrate admin tables to data grid #3942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
...plugin-authentication-administration/src/Administration/Users/Teams/TeamsTable/TeamsPage.tsx
Show resolved
Hide resolved
...kages/plugin-authentication-administration/src/Administration/Users/UsersTable/UsersPage.tsx
Outdated
Show resolved
Hide resolved
...s/plugin-authentication-administration/src/Administration/Users/UsersTable/useUsersTable.tsx
Show resolved
Hide resolved
| <Group boxNoOverflow> | ||
| <TeamsTable teams={table.teams} state={table.state} selectedItems={table.tableState.selected} expandedItems={table.tableState.expanded} /> | ||
| </Group> | ||
| <TableSelectionContext value={selection}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we should discuss it at UI/UX meeting and then with the next iteration fix issues if we find some
|
|
||
| if (displayAuthRole) { | ||
| const isRole = COLUMNS.find(c => c.key === ROLE_COLUMN.key); | ||
|
|
||
| if (!isRole) { | ||
| COLUMNS.push(ROLE_COLUMN); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (displayAuthRole) { | |
| const isRole = COLUMNS.find(c => c.key === ROLE_COLUMN.key); | |
| if (!isRole) { | |
| COLUMNS.push(ROLE_COLUMN); | |
| } | |
| } | |
| let columns = COLUMNS; | |
| if (displayAuthRole) { | |
| columns = [...COLUMNS, ROLE_COLUMN]; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't mutate constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, better to create separate variable inside component and memo it


closes 4503