1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-28 19:51:34 +00:00

feat: update code

This commit is contained in:
杨国璇 2024-08-16 20:31:34 +08:00
parent 7a47c647a2
commit 46e8aac5c6
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
</div>
</DetailItem>
)}
{window.app.pageOptions.enableMetadataManagement && (
{window.app.pageOptions.enableMetadataManagement && enableMetadata && (
<MetadataDetails repoID={repoID} filePath={direntPath} repoInfo={repoInfo} direntType="file" />
)}
{isEditFileTagShow &&

View File

@ -13,7 +13,7 @@ import { CellType, getColumnOptions, getOptionName, PREDEFINED_COLUMN_KEYS, getC
import './index.css';
const MetadataDetails = ({ repoID, filePath, repoInfo, direntType, emptyTip }) => {
const MetadataDetails = ({ repoID, filePath, repoInfo, direntType }) => {
const [isLoading, setLoading] = useState(true);
const [metadata, setMetadata] = useState({ record: {}, fields: [] });
const permission = useMemo(() => repoInfo.permission !== 'admin' && repoInfo.permission !== 'rw' ? 'r' : 'rw', [repoInfo]);