1
0
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:
zhichaona
2025-04-28 18:11:06 +08:00
committed by Michael An
parent 7f74be9e08
commit e967eb0134

View File

@@ -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={{