Make sync ingest setting public (#2485)

make sync ingest setting public
This commit is contained in:
Brendan Allan 2024-05-14 16:38:00 +08:00 committed by GitHub
parent 50f554d5e5
commit 7faa08c53a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 9 deletions

View file

@ -19,6 +19,7 @@
"dialog:allow-open",
"window:allow-close",
"window:allow-minimize",
"window:allow-toggle-maximize"
"window:allow-toggle-maximize",
"dialog:allow-confirm"
]
}

View file

@ -152,7 +152,7 @@ impl Actor {
shared
.actors
.declare(
"Sync Ingester",
"Sync Ingest",
{
let shared = shared.clone();
move || async move {

View file

@ -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')}

View file

@ -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} />}
</>
)}
</>