Skip to content

Commit

Permalink
Merge pull request #41 from logzio/DEV-42042-disable-the-option-to-de…
Browse files Browse the repository at this point in the history
…lete-or-edit-the-default-email
  • Loading branch information
copyhold authored Nov 13, 2023
2 parents f861e78 + 378e30b commit a7a1d57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const ReceiversTable: FC<Props> = ({ config, alertManagerName }) => {
setReceiverToDelete(undefined);
};

const defaultContactPoint = config.alertmanager_config.route?.receiver;// LOGZ.IO GRAFANA CHANGE
const rows = useMemo(
() =>
config.alertmanager_config.receivers?.map((receiver) => ({
Expand Down Expand Up @@ -119,7 +120,7 @@ export const ReceiversTable: FC<Props> = ({ config, alertManagerName }) => {
<td className={tableStyles.actionsCell}>
{
// prettier-ignore
!isVanillaAM && !receiver.logzioSettings && ( // LOGZ.IO GRAFANA CHANGE
!isVanillaAM && !receiver.logzioSettings && defaultContactPoint !== receiver.name && ( // LOGZ.IO GRAFANA CHANGE
<>
<Authorize actions={[permissions.update]}>
<ActionIcon
Expand Down

0 comments on commit a7a1d57

Please sign in to comment.