1
0
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:
Toby Zerner
2016-05-27 12:42:19 +09:30
parent 1177880483
commit 240aa9e83b
7 changed files with 257 additions and 115 deletions

View File

@@ -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>