mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 10:03:28 +00:00
Make sync ingest setting public (#2485)
make sync ingest setting public
This commit is contained in:
parent
50f554d5e5
commit
7faa08c53a
|
@ -19,6 +19,7 @@
|
|||
"dialog:allow-open",
|
||||
"window:allow-close",
|
||||
"window:allow-minimize",
|
||||
"window:allow-toggle-maximize"
|
||||
"window:allow-toggle-maximize",
|
||||
"dialog:allow-confirm"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ impl Actor {
|
|||
shared
|
||||
.actors
|
||||
.declare(
|
||||
"Sync Ingester",
|
||||
"Sync Ingest",
|
||||
{
|
||||
let shared = shared.clone();
|
||||
move || async move {
|
||||
|
|
|
@ -117,12 +117,10 @@ export default () => {
|
|||
<Icon component={MagnifyingGlass} />
|
||||
Saved Searches
|
||||
</SidebarLink> */}
|
||||
{useFeatureFlag('cloudSync') && (
|
||||
<SidebarLink to="library/sync">
|
||||
<Icon component={ArrowsClockwise} />
|
||||
{t('sync')}
|
||||
</SidebarLink>
|
||||
)}
|
||||
<SidebarLink to="library/sync">
|
||||
<Icon component={ArrowsClockwise} />
|
||||
{t('sync')}
|
||||
</SidebarLink>
|
||||
<SidebarLink disabled to="library/clouds">
|
||||
<Icon component={Cloud} />
|
||||
{t('clouds')}
|
||||
|
|
|
@ -3,6 +3,7 @@ import clsx from 'clsx';
|
|||
import { useEffect, useState } from 'react';
|
||||
import {
|
||||
Procedures,
|
||||
useFeatureFlag,
|
||||
useLibraryMutation,
|
||||
useLibraryQuery,
|
||||
useLibrarySubscription,
|
||||
|
@ -36,6 +37,8 @@ export const Component = () => {
|
|||
|
||||
useLibrarySubscription(['library.actors'], { onData: setData });
|
||||
|
||||
const cloudSync = useFeatureFlag('cloudSync');
|
||||
|
||||
return (
|
||||
<>
|
||||
<Heading title={t('sync')} description={t('sync_description')} />
|
||||
|
@ -78,7 +81,8 @@ export const Component = () => {
|
|||
)}
|
||||
</div>
|
||||
</Setting>
|
||||
<CloudSync data={data} />
|
||||
|
||||
{cloudSync && <CloudSync data={data} />}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue