mirror of
https://github.com/flarum/core.git
synced 2025-10-14 00:15:51 +02:00
Improve permissions page
- Introduce the concept of "required permissions" - basically a permission dependency tree. In order for a group to be granted one permission, they must also have another. - Improve redraw performance by not building dropdown menu contents until dropdown is opened ref #904
This commit is contained in:
@@ -44,7 +44,7 @@ export default class PermissionGrid extends Component {
|
||||
</tr>
|
||||
{section.children.map(child => (
|
||||
<tr className="PermissionGrid-child">
|
||||
<th>{child.icon ? icon(child.icon) : ''}{child.label}</th>
|
||||
<th>{icon(child.icon)}{child.label}</th>
|
||||
{permissionCells(child)}
|
||||
<td/>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user