mirror of
https://github.com/stashapp/stash.git
synced 2026-03-27 07:31:34 +01:00
Add warning to selective auto tag dialog
This commit is contained in:
parent
28c2b564ef
commit
09ba5d291f
2 changed files with 18 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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[]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue