Groups: Do not display duplicated create button
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -59,7 +59,7 @@ const Groups: React.FC = () => {
|
||||
|
||||
return (
|
||||
<Stack space={4}>
|
||||
{canCreateGroup && (
|
||||
{canCreateGroup && !(!isLoading && groups.length === 0) && (
|
||||
<Button
|
||||
className='xl:hidden'
|
||||
icon={require('@tabler/icons/outline/circles.svg')}
|
||||
|
||||
@ -533,7 +533,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||
* @see POST /api/v1/admin/groups/:group_id/unsuspend
|
||||
* @see DELETE /api/v1/admin/groups/:group_id
|
||||
*/
|
||||
groups: false,
|
||||
groups: true,
|
||||
|
||||
/**
|
||||
* Can hide follows/followers lists and counts.
|
||||
|
||||
Reference in New Issue
Block a user