From 5d8ccb5daa77103c7e82187d8a32cd0b0a1c3d40 Mon Sep 17 00:00:00 2001 From: Sagar Rajput Date: Wed, 12 Jun 2024 12:52:11 +0530 Subject: [PATCH] feat: opened notification channel creation in new tab --- frontend/src/container/FormAlertRules/BasicInfo.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/container/FormAlertRules/BasicInfo.tsx b/frontend/src/container/FormAlertRules/BasicInfo.tsx index 122ada5e450..0c819c8e644 100644 --- a/frontend/src/container/FormAlertRules/BasicInfo.tsx +++ b/frontend/src/container/FormAlertRules/BasicInfo.tsx @@ -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'; @@ -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 (