mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 14:04:03 +00:00
parent
4cff4763ed
commit
c54a0b3805
|
@ -10,7 +10,7 @@ import {
|
||||||
} from '@sd/client';
|
} from '@sd/client';
|
||||||
import { Button, Card, Input, Select, SelectOption, Slider, Switch, tw, z } from '@sd/ui';
|
import { Button, Card, Input, Select, SelectOption, Slider, Switch, tw, z } from '@sd/ui';
|
||||||
import { Icon } from '~/components';
|
import { Icon } from '~/components';
|
||||||
import { useDebouncedFormWatch, useOperatingSystem } from '~/hooks';
|
import { useDebouncedFormWatch } from '~/hooks';
|
||||||
import { usePlatform } from '~/util/Platform';
|
import { usePlatform } from '~/util/Platform';
|
||||||
|
|
||||||
import { Heading } from '../Layout';
|
import { Heading } from '../Layout';
|
||||||
|
@ -28,8 +28,6 @@ export const Component = () => {
|
||||||
const debugState = useDebugState();
|
const debugState = useDebugState();
|
||||||
const editNode = useBridgeMutation('nodes.edit');
|
const editNode = useBridgeMutation('nodes.edit');
|
||||||
const connectedPeers = useConnectedPeers();
|
const connectedPeers = useConnectedPeers();
|
||||||
const os = useOperatingSystem();
|
|
||||||
const { requestFdaMacos } = usePlatform();
|
|
||||||
const updateThumbnailerPreferences = useBridgeMutation('nodes.updateThumbnailerPreferences');
|
const updateThumbnailerPreferences = useBridgeMutation('nodes.updateThumbnailerPreferences');
|
||||||
|
|
||||||
const form = useZodForm({
|
const form = useZodForm({
|
||||||
|
@ -177,19 +175,6 @@ export const Component = () => {
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
{os === 'macOS' && (
|
|
||||||
<Setting
|
|
||||||
mini
|
|
||||||
title="Full disk access"
|
|
||||||
containerClassName="items-start"
|
|
||||||
description="Enable full disk access to allow Spacedrive to index additional files."
|
|
||||||
>
|
|
||||||
<Button onClick={requestFdaMacos} variant="gray" size="sm">
|
|
||||||
Enable
|
|
||||||
</Button>
|
|
||||||
</Setting>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Setting
|
<Setting
|
||||||
mini
|
mini
|
||||||
title="Debug mode"
|
title="Debug mode"
|
||||||
|
|
Loading…
Reference in a new issue