diff --git a/src/apps/console/routes/_main+/$account+/$cluster+/$project+/$scope+/$workspace+/app+/$app+/logs/route.tsx b/src/apps/console/routes/_main+/$account+/$cluster+/$project+/$scope+/$workspace+/app+/$app+/logs/route.tsx index 912ba042a..0717ad91d 100644 --- a/src/apps/console/routes/_main+/$account+/$cluster+/$project+/$scope+/$workspace+/app+/$app+/logs/route.tsx +++ b/src/apps/console/routes/_main+/$account+/$cluster+/$project+/$scope+/$workspace+/app+/$app+/logs/route.tsx @@ -40,7 +40,11 @@ const ItemList = () => {
Logs Url: {url}
{ type: 'text', search: false, dataFetcher: async () => { - toast.info(`todo status`); return [ { content: 'Active', value: 'active' }, { content: 'Freezed', value: 'freezed' }, diff --git a/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/handle-router.tsx b/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/handle-router.tsx index 1aa1e16ea..724fe313c 100644 --- a/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/handle-router.tsx +++ b/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/handle-router.tsx @@ -21,6 +21,7 @@ import Select from '~/components/atoms/select'; import useCustomSwr from '~/root/lib/client/hooks/use-custom-swr'; import { IDomains } from '~/console/server/gql/queries/domain-queries'; import { useMapper } from '~/components/utils'; +import { da } from '@faker-js/faker'; type IDialog = IDialogBase>; @@ -136,11 +137,13 @@ const Root = (props: IDialog) => { useEffect(() => { if (isUpdate) { - setSelectedDomains( - domains.filter((d) => props.data.spec.domains.includes(d.value)) + const d = domains.filter((d) => + props.data.spec.domains.includes(d.value) ); + setSelectedDomains(d); + handleChange('domains')(dummyEvent([...d.map((v) => v.value)])); } - }, [isUpdate]); + }, [data]); const nameIDRef = useRef(null); @@ -148,9 +151,6 @@ const Root = (props: IDialog) => { nameIDRef.current?.focus(); }, [nameIDRef]); - useEffect(() => { - console.log(errors); - }, [errors]); return ( { diff --git a/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/tools.tsx b/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/tools.tsx index ff2066253..ec2a33565 100644 --- a/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/tools.tsx +++ b/src/apps/console/routes/_main+/$account+/$project+/$environment+/routers/tools.tsx @@ -1,6 +1,5 @@ import { useSearchParams } from '@remix-run/react'; import { useMemo } from 'react'; -import { toast } from 'react-toastify'; import CommonTools from '~/console/components/common-tools'; const Tools = () => { @@ -13,7 +12,6 @@ const Tools = () => { type: 'text', search: false, dataFetcher: async () => { - toast.info(`todo status`); return [ { content: 'Active', value: 'active' }, { content: 'Freezed', value: 'freezed' }, diff --git a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/np.$nodepool/route.tsx b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/np.$nodepool/route.tsx index 99e51cea7..6dff890a6 100644 --- a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/np.$nodepool/route.tsx +++ b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/np.$nodepool/route.tsx @@ -117,7 +117,11 @@ const Log = ({ nodepool }: { nodepool: string }) => { // /> // } dark - websocket + websocket={{ + account: '', + cluster: '', + trackingId: '', + }} height="60vh" width="100%" url={getUrl(selectOptions[3].from())} diff --git a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/overview+/logs/route.tsx b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/overview+/logs/route.tsx index 22b3e54c7..777dac184 100644 --- a/src/apps/console/routes/_main+/$account+/infra+/$cluster+/overview+/logs/route.tsx +++ b/src/apps/console/routes/_main+/$account+/infra+/$cluster+/overview+/logs/route.tsx @@ -59,7 +59,11 @@ const Log = () => { // // } dark - websocket + websocket={{ + account: '', + trackingId: '', + cluster: '', + }} height="60vh" width="100%" url={getUrl(selectOptions[3].from())}