mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 08:13:12 +09:00
Disable the select all and clear buttons using canUpdate
This commit is contained in:
1 file changed
+2
-2
@@ -113,8 +113,8 @@ function PermissionGroup({
|
|||||||
<Space style={{ width: "100%", justifyContent: "space-between" }}>
|
<Space style={{ width: "100%", justifyContent: "space-between" }}>
|
||||||
<strong>{formatGroupTitle(groupName)}</strong>
|
<strong>{formatGroupTitle(groupName)}</strong>
|
||||||
<Space>
|
<Space>
|
||||||
<Button size="small" onClick={() => setGroup(true)}>Select all</Button>
|
<Button size="small" disabled={!canUpdate} onClick={() => setGroup(true)}>Select all</Button>
|
||||||
<Button size="small" onClick={() => setGroup(false)}>Clear</Button>
|
<Button size="small" disabled={!canUpdate} onClick={() => setGroup(false)}>Clear</Button>
|
||||||
</Space>
|
</Space>
|
||||||
</Space>
|
</Space>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user