Hide edit button for default route (#1485)
# What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated
This commit is contained in:
parent
7c8722e714
commit
eb37c3d13d
1 changed files with 16 additions and 14 deletions
|
|
@ -664,20 +664,22 @@ class AlertRules extends React.Component<AlertRulesProps, AlertRulesState> {
|
|||
/>
|
||||
</WithPermissionControlTooltip>
|
||||
)}
|
||||
<WithPermissionControlTooltip userAction={UserActions.IntegrationsWrite}>
|
||||
<IconButton
|
||||
size="md"
|
||||
name="pen"
|
||||
onClick={(event) => {
|
||||
event.stopPropagation();
|
||||
this.setState({
|
||||
channelFilterToEdit: channelFilter,
|
||||
});
|
||||
}}
|
||||
tooltip="Edit"
|
||||
tooltipPlacement="top"
|
||||
/>
|
||||
</WithPermissionControlTooltip>
|
||||
{!channelFilter.is_default && (
|
||||
<WithPermissionControlTooltip userAction={UserActions.IntegrationsWrite}>
|
||||
<IconButton
|
||||
size="md"
|
||||
name="pen"
|
||||
onClick={(event) => {
|
||||
event.stopPropagation();
|
||||
this.setState({
|
||||
channelFilterToEdit: channelFilter,
|
||||
});
|
||||
}}
|
||||
tooltip="Edit"
|
||||
tooltipPlacement="top"
|
||||
/>
|
||||
</WithPermissionControlTooltip>
|
||||
)}
|
||||
<WithPermissionControlTooltip userAction={UserActions.IntegrationsTest}>
|
||||
<Button variant="secondary" size="sm" onClick={this.getSendDemoAlertToParticularRoute(channelFilterId)}>
|
||||
Send demo alert
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue