setSelectedRows([])}
diff --git a/src/pages/utilities/UnrecognizedUtilityTabs/UnrecognizedTab.tsx b/src/pages/utilities/UnrecognizedUtilityTabs/UnrecognizedTab.tsx
index 75a095986..2d43094d5 100644
--- a/src/pages/utilities/UnrecognizedUtilityTabs/UnrecognizedTab.tsx
+++ b/src/pages/utilities/UnrecognizedUtilityTabs/UnrecognizedTab.tsx
@@ -1,5 +1,5 @@
import React, { useMemo, useState } from 'react';
-import { useSelector } from 'react-redux';
+import { useDispatch, useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import useMeasure from 'react-use-measure';
import {
@@ -8,6 +8,7 @@ import {
mdiDatabaseSyncOutline,
mdiDumpTruck,
mdiEyeOffOutline,
+ mdiFileDocumentEditOutline,
mdiFileDocumentOutline,
mdiLoading,
mdiMagnify,
@@ -44,6 +45,7 @@ import {
import { useFilesInfiniteQuery } from '@/core/react-query/file/queries';
import { useImportFoldersQuery } from '@/core/react-query/import-folder/queries';
import { invalidateQueries } from '@/core/react-query/queryClient';
+import { addFiles } from '@/core/slices/utilities/renamer';
import { FileSortCriteriaEnum } from '@/core/types/api/file';
import useEventCallback from '@/hooks/useEventCallback';
import useFlattenListResult from '@/hooks/useFlattenListResult';
@@ -67,6 +69,9 @@ const Menu = (
setSeriesSelectModal,
} = props;
+ const dispatch = useDispatch();
+ const navigate = useNavigate();
+
const [showConfirmModal, setShowConfirmModal] = useState(false);
const { mutate: deleteFiles } = useDeleteFilesMutation();
@@ -148,6 +153,11 @@ const Menu = (
.catch(console.error);
});
+ const handleRename = useEventCallback(() => {
+ dispatch(addFiles(selectedRows));
+ navigate('/webui/utilities/renamer');
+ });
+
const renderSelectedRowActions = useMemo(() => (
<>
@@ -166,6 +176,7 @@ const Menu = (
setSeriesSelectModal(true)} icon={mdiFileDocumentOutline} name="Add To AniDB" />
+
>
), [
+ handleRename,
ignoreFiles,
rehashFiles,
rescanFiles,
diff --git a/vite.config.mjs b/vite.config.mjs
index 7c6b346b9..481b3193c 100644
--- a/vite.config.mjs
+++ b/vite.config.mjs
@@ -6,6 +6,7 @@ import pkg from './package.json';
import { defineConfig } from 'vite';
import { sentryVitePlugin } from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
+import { manualChunksPlugin } from 'vite-plugin-webpackchunkname'
export default defineConfig(async () => {
const isDebug = process.env.NODE_ENV !== 'production';
@@ -47,7 +48,7 @@ export default defineConfig(async () => {
sourcemap: true,
chunkSizeWarningLimit: 2000
},
- plugins: [react(), sentryPlugin],
+ plugins: [react(), sentryPlugin, manualChunksPlugin()],
base: "/webui/"
};
});