mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 22:22:50 -05:00
Update role names in control page checks
This commit is contained in:
@@ -722,7 +722,8 @@ function App({ wsEndpoint, role }) {
|
||||
) : (
|
||||
<div>loading...</div>
|
||||
)}
|
||||
{roleCan(role, 'set-custom-streams') && (
|
||||
{roleCan(role, 'update-custom-stream') &&
|
||||
roleCan(role, 'delete-custom-stream') && (
|
||||
<>
|
||||
<h2>Custom Streams</h2>
|
||||
<div>
|
||||
@@ -740,7 +741,9 @@ function App({ wsEndpoint, role }) {
|
||||
onDelete={handleDeleteCustomStream}
|
||||
/>
|
||||
))}
|
||||
<CreateCustomStreamInput onCreate={handleChangeCustomStream} />
|
||||
<CreateCustomStreamInput
|
||||
onCreate={handleChangeCustomStream}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
@@ -1076,7 +1079,7 @@ function GridControls({
|
||||
<SwapIcon />
|
||||
</StyledSmallButton>
|
||||
)}
|
||||
{roleCan(role, 'rotate-view') && (
|
||||
{roleCan(role, 'rotate-stream') && (
|
||||
<StyledSmallButton onClick={handleRotateClick} tabIndex={1}>
|
||||
<RotateIcon />
|
||||
</StyledSmallButton>
|
||||
|
||||
Reference in New Issue
Block a user