Hid away buttons that shouldn't be there for non-admins
This commit is contained in:
@@ -1442,7 +1442,7 @@ const Apps = (props) => {
|
||||
</div>
|
||||
{isCloud ? null : (
|
||||
<span>
|
||||
{isLoading ? null : (
|
||||
{props.userdata === undefined || props.userdata === null || props.userdata.role !== "admin" || isLoading ? null : (
|
||||
<Tooltip
|
||||
title={"Reload apps locally"}
|
||||
style={{ marginTop: "28px", width: "100%" }}
|
||||
@@ -1466,6 +1466,8 @@ const Apps = (props) => {
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
{props.userdata === undefined || props.userdata === null || props.userdata.role !== "admin" ? null :
|
||||
<Tooltip
|
||||
title={"Download from Github"}
|
||||
style={{ marginTop: "28px", width: "100%" }}
|
||||
@@ -1489,6 +1491,7 @@ const Apps = (props) => {
|
||||
)}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user