Disable the select all and clear buttons using canUpdate

This commit is contained in:
Cooldude2606 committed 2026-04-19 22:47:05 +01:00
1 parent 6f181f357b
commit f515b2db80
1 file changed
+2 -2
@@ -113,8 +113,8 @@ function PermissionGroup({
<Space style={{ width: "100%", justifyContent: "space-between" }}>
<strong>{formatGroupTitle(groupName)}</strong>
<Space>
<Button size="small" onClick={() => setGroup(true)}>Select all</Button>
<Button size="small" onClick={() => setGroup(false)}>Clear</Button>
<Button size="small" disabled={!canUpdate} onClick={() => setGroup(true)}>Select all</Button>
<Button size="small" disabled={!canUpdate} onClick={() => setGroup(false)}>Clear</Button>
</Space>
</Space>