Add warning to selective auto tag dialog

This commit is contained in:
WithoutPants 2026-03-23 16:08:17 +11:00
parent 28c2b564ef
commit 09ba5d291f
2 changed files with 18 additions and 3 deletions

View file

@ -20,7 +20,13 @@ interface IDirectorySelectionDialogProps {
export const DirectorySelectionDialog: React.FC<
IDirectorySelectionDialogProps
> = ({ animation, allowEmpty = false, initialPaths = [], onClose }) => {
> = ({
animation,
allowEmpty = false,
initialPaths = [],
onClose,
children,
}) => {
const intl = useIntl();
const { configuration } = useConfigurationContext();
@ -91,6 +97,8 @@ export const DirectorySelectionDialog: React.FC<
</Button>
}
/>
{children}
</div>
</ModalComponent>
);

View file

@ -19,7 +19,10 @@ import { BooleanSetting, Setting, SettingGroup } from "../Inputs";
import { ManualLink } from "src/components/Help/context";
import { Icon } from "src/components/Shared/Icon";
import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
import { AutoTagConfirmDialog } from "src/components/Shared/AutoTagConfirmDialog";
import {
AutoTagConfirmDialog,
AutoTagWarning,
} from "src/components/Shared/AutoTagConfirmDialog";
import { useSettings } from "../context";
interface IAutoTagOptions {
@ -244,7 +247,11 @@ export const LibraryTasks: React.FC = () => {
return;
}
return <DirectorySelectionDialog onClose={onAutoTagDialogClosed} />;
return (
<DirectorySelectionDialog onClose={onAutoTagDialogClosed}>
<AutoTagWarning />
</DirectorySelectionDialog>
);
}
function onAutoTagDialogClosed(paths?: string[]) {