mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
open right-panel in sync && add loading
This commit is contained in:
@@ -3,6 +3,7 @@ import metadataAPI from '../metadata/api';
|
||||
import { Utils } from '../utils/utils';
|
||||
import toaster from '../components/toast';
|
||||
import { MetadataAIOperationsProvider } from './metadata-ai-operation';
|
||||
import Loading from '../components/loading';
|
||||
|
||||
// This hook provides content related to seahub interaction, such as whether to enable extended attributes
|
||||
const MetadataStatusContext = React.createContext(null);
|
||||
@@ -123,6 +124,15 @@ export const MetadataStatusProvider = ({ repoID, repoInfo, hideMetadataView, sta
|
||||
});
|
||||
}, [repoID, detailsSettings]);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
<div style={{ width: '300px' }}>
|
||||
<Loading/>
|
||||
</div>
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<MetadataStatusContext.Provider
|
||||
value={{
|
||||
|
Reference in New Issue
Block a user