mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:20:32 +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 { Utils } from '../utils/utils';
|
||||||
import toaster from '../components/toast';
|
import toaster from '../components/toast';
|
||||||
import { MetadataAIOperationsProvider } from './metadata-ai-operation';
|
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
|
// This hook provides content related to seahub interaction, such as whether to enable extended attributes
|
||||||
const MetadataStatusContext = React.createContext(null);
|
const MetadataStatusContext = React.createContext(null);
|
||||||
@@ -123,6 +124,15 @@ export const MetadataStatusProvider = ({ repoID, repoInfo, hideMetadataView, sta
|
|||||||
});
|
});
|
||||||
}, [repoID, detailsSettings]);
|
}, [repoID, detailsSettings]);
|
||||||
|
|
||||||
|
if (isLoading) {
|
||||||
|
return (
|
||||||
|
<div style={{ width: '300px' }}>
|
||||||
|
<Loading/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MetadataStatusContext.Provider
|
<MetadataStatusContext.Provider
|
||||||
value={{
|
value={{
|
||||||
|
Reference in New Issue
Block a user