Skip to content

Commit

Permalink
feat: opened notification channel creation in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Jun 12, 2024
1 parent 6711b8e commit 5d8ccb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/container/FormAlertRules/BasicInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Button, Form, Select, Switch, Tooltip } from 'antd';
import getChannels from 'api/channels/getAll';
import ROUTES from 'constants/routes';
import useFetch from 'hooks/useFetch';
import history from 'lib/history';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { AlertDef, Labels } from 'types/api/alerts/def';
Expand Down Expand Up @@ -63,7 +62,7 @@ function BasicInfo({

const noChannels = !channels.payload?.length;
const handleCreateNewChannels = useCallback(() => {
history.push(ROUTES.CHANNELS_NEW);
window.open(ROUTES.CHANNELS_NEW, '_blank');
}, []);

return (
Expand Down

0 comments on commit 5d8ccb5

Please sign in to comment.