|
|
@@ -146,19 +146,24 @@ class UserGroupPage extends React.Component {
|
|
|
isAclEnabled={isAclEnabled}
|
|
|
onCreate={this.addUserGroup}
|
|
|
/>
|
|
|
- <UserGroupTable
|
|
|
- userGroups={this.state.userGroups}
|
|
|
- isAclEnabled={isAclEnabled}
|
|
|
- onDelete={this.showDeleteModal}
|
|
|
- userGroupRelations={this.state.userGroupRelations}
|
|
|
- />
|
|
|
- <PaginationWrapper
|
|
|
- activePage={this.state.activePage}
|
|
|
- changePage={this.handlePage}
|
|
|
- totalItemsCount={this.state.totalUserGroups}
|
|
|
- pagingLimit={this.state.pagingLimit}
|
|
|
- size="sm"
|
|
|
- />
|
|
|
+ {this.state.totalUserGroups === 0
|
|
|
+ ? <p>No groups yet</p> : (
|
|
|
+ <>
|
|
|
+ <UserGroupTable
|
|
|
+ userGroups={this.state.userGroups}
|
|
|
+ isAclEnabled={isAclEnabled}
|
|
|
+ onDelete={this.showDeleteModal}
|
|
|
+ userGroupRelations={this.state.userGroupRelations}
|
|
|
+ />
|
|
|
+ <PaginationWrapper
|
|
|
+ activePage={this.state.activePage}
|
|
|
+ changePage={this.handlePage}
|
|
|
+ totalItemsCount={this.state.totalUserGroups}
|
|
|
+ pagingLimit={this.state.pagingLimit}
|
|
|
+ size="sm"
|
|
|
+ />
|
|
|
+ </>
|
|
|
+ )}
|
|
|
<UserGroupDeleteModal
|
|
|
userGroups={this.state.userGroups}
|
|
|
deleteUserGroup={this.state.selectedUserGroup}
|