diff --git a/src/core/react-query/settings/helpers.ts b/src/core/react-query/settings/helpers.ts index 559ee8a67..fbf29508a 100644 --- a/src/core/react-query/settings/helpers.ts +++ b/src/core/react-query/settings/helpers.ts @@ -402,7 +402,6 @@ export const initialSettings: SettingsType = { Delete: false, Delete_Days: '0', }, - GA_OptOutPlzDont: false, AutoGroupSeries: false, AutoGroupSeriesUseScoreAlgorithm: false, AutoGroupSeriesRelationExclusions: [], diff --git a/src/core/types/api/settings.ts b/src/core/types/api/settings.ts index ca2b19e4d..0c0262599 100644 --- a/src/core/types/api/settings.ts +++ b/src/core/types/api/settings.ts @@ -387,7 +387,6 @@ export type SettingsServerType = { TraktTv: SettingsTraktType; Plex: SettingsPlexType; LogRotator: SettingsLogRotatorType; - GA_OptOutPlzDont: boolean; AutoGroupSeries: boolean; AutoGroupSeriesUseScoreAlgorithm: boolean; AutoGroupSeriesRelationExclusions: string[]; diff --git a/src/pages/firstrun/Footer.tsx b/src/pages/firstrun/Footer.tsx index d0c011c5a..5a195a02f 100644 --- a/src/pages/firstrun/Footer.tsx +++ b/src/pages/firstrun/Footer.tsx @@ -3,6 +3,8 @@ import { useNavigate } from 'react-router-dom'; import cx from 'classnames'; import Button from '@/components/Input/Button'; +import { useRunActionMutation } from '@/core/react-query/action/mutations'; +import useEventCallback from '@/hooks/useEventCallback'; import type { TestStatusType } from '@/core/slices/firstrun'; @@ -19,11 +21,18 @@ type Props = { function Footer(props: Props) { const navigate = useNavigate(); - const handleNext = () => { + const { mutate: runAction } = useRunActionMutation(); + + const handleNext = useEventCallback(() => { const { nextPage, saveFunction } = props; if (saveFunction) saveFunction(); if (nextPage) navigate(`../${nextPage}`); - }; + }); + + const handleFinish = useEventCallback(() => { + runAction('RunImport'); + navigate('/webui/dashboard', { replace: true, state: { firstRun: true } }); + }); const { finish, @@ -50,7 +59,7 @@ function Footer(props: Props) { {finish ? (