File tree Expand file tree Collapse file tree
frontend/viewer/src/project Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 import { fade } from ' svelte/transition' ;
1616 import { delay } from ' $lib/utils/time' ;
1717 import { cn } from ' $lib/utils' ;
18+ import {useFeatures } from ' $lib/services/feature-service' ;
1819
1920 const service = useSyncStatusService ();
21+ const features = useFeatures ();
2022 let remoteStatus: IProjectSyncStatus | undefined = $state ();
2123 let localStatus: ISyncResult | undefined = $state ();
2224 let server: ILexboxServer | undefined = $state ();
206208 <div class =" content-center text-center" >
207209 <Button
208210 loading ={loadingSyncLexboxToFlex }
209- disabled ={loadingSyncLexboxToLocal }
211+ disabled ={loadingSyncLexboxToLocal || ! features . write }
210212 onclick ={syncLexboxToFlex }
211213 icon =" i-mdi-sync"
212214 iconProps ={{ class : ' size-5' }}>
You can’t perform that action at this time.
0 commit comments