mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 13:55:40 -04:00
Make sync ingest setting public (#2485)
make sync ingest setting public
This commit is contained in:
@@ -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} />}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user