mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* feat: align management pages with the refreshed table design * feat: refresh agent dialogs using shared UI components * test: cover refreshed management pages and agent dialogs * fix: use the standard UI modal for agent management * feat: expand member rows with available role details * Revert "feat: expand member rows with available role details" This reverts commit e0516c6ce43896508b918db10b028f1cdf88c29b. * docs: show scoped member roles in CrudTable stories * fix: align tab labels with badges * fix: define management role icons in the role registry * fix: reuse shared name abbreviations in management tables * style: format management tables and tabs for CI * test: preserve agent totals and tab badges after rebase
25 lines
865 B
JavaScript
25 lines
865 B
JavaScript
export default (client, $hasFeature, $registry) => {
|
|
return {
|
|
// TODO implement once endpoint exists
|
|
get(workspace) {
|
|
return {
|
|
data: Object.values($registry.getAll('roles')).map((role) => ({
|
|
uid: role.getUid(),
|
|
icon: role.getIconClass(),
|
|
description: role.getDescription(),
|
|
invitationSubtitle: role.getInvitationSubtitle(workspace.id),
|
|
showIsBillable: role.showIsBillable(workspace.id),
|
|
isBillable: role.getIsBillable(),
|
|
isVisible: role.isVisible(workspace.id),
|
|
isDeactivated: role.isDeactivated(workspace.id),
|
|
isDefaultForInvitations: role.getIsDefaultForInvitations(
|
|
workspace.id
|
|
),
|
|
allowedScopeTypes: role.allowedScopeTypes,
|
|
allowedSubjectTypes: role.allowedSubjectTypes,
|
|
})),
|
|
}
|
|
},
|
|
}
|
|
}
|