mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): hide the organization row group (#5286)
hide the organization row group is the data is empty
This commit is contained in:
parent
9d15d88d28
commit
3026413c23
2 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,10 @@
|
|||
height: _.unit(9);
|
||||
|
||||
td {
|
||||
font: var(--font-label-2);
|
||||
color: var(--color-text-secondary);
|
||||
background-color: var(--color-layer-light);
|
||||
padding-top: _.unit(2);
|
||||
padding-bottom: _.unit(2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,7 +93,12 @@ const useScopesTable = () => {
|
|||
})
|
||||
);
|
||||
|
||||
return [userScopesGroup, ...resourceScopesGroups, organizationScopesGroup];
|
||||
return [
|
||||
userScopesGroup,
|
||||
...resourceScopesGroups,
|
||||
// Hide the organization scopes group if there is no organization scopes
|
||||
...(organizationScopesGroup.data.length > 0 ? [organizationScopesGroup] : []),
|
||||
];
|
||||
},
|
||||
[experienceT, t]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue