Skip to content

Commit

Permalink
Create detector refactor alert triggers per mocks
Browse files Browse the repository at this point in the history
#503

Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Apr 11, 2023
1 parent 8406116 commit 7827452
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import { RouteComponentProps } from 'react-router-dom';
import {
EuiAccordion,
EuiButton,
EuiCallOut,
EuiFlexGroup,
EuiFlexItem,
EuiHorizontalRule,
EuiPanel,
EuiSpacer,
EuiTitle,
EuiText,
EuiCallOut,
EuiFlexGroup,
EuiFlexItem,
EuiTitle,
} from '@elastic/eui';
import { MAX_ALERT_CONDITIONS } from '../utils/constants';
import AlertConditionPanel from '../components/AlertCondition';
Expand Down Expand Up @@ -142,7 +142,11 @@ export default class ConfigureAlerts extends Component<ConfigureAlertsProps, Con
} = this.props;

let getPageTitle = (): string | JSX.Element => {
let title = (
if (isEdit) {
return <>Alert triggers (${triggers.length})</>;
}

return (
<EuiFlexGroup alignItems={'center'}>
<EuiFlexItem grow={true}>
<EuiTitle size={'m'}>
Expand All @@ -167,12 +171,8 @@ export default class ConfigureAlerts extends Component<ConfigureAlertsProps, Con
)}
</EuiFlexGroup>
);
if (isEdit) {
title = <>Alert triggers (${triggers.length})</>;
}

return title;
};

const { loading, notificationChannels } = this.state;
return (
<div>
Expand Down

0 comments on commit 7827452

Please sign in to comment.