1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 12:58:34 +00:00

refactor: location display

This commit is contained in:
杨国璇
2024-10-25 11:03:31 +08:00
parent a362b786a8
commit 16267f0f65
6 changed files with 43 additions and 37 deletions

View File

@@ -13,6 +13,7 @@ import { gettext } from '../../../utils/constants';
import { CellType, PREDEFINED_COLUMN_KEYS, PRIVATE_COLUMN_KEY } from '../../constants';
import { getColumnOptions, getColumnOriginName } from '../../utils/column';
import { SYSTEM_FOLDERS } from './constants';
import Location from './location';
import './index.css';
@@ -120,6 +121,7 @@ const MetadataDetails = ({ repoID, filePath, repoInfo, direntType, updateRecord
</DetailItem>
);
})}
{isImage && (<Location position={getCellValueByColumn(record, { key: PRIVATE_COLUMN_KEY.LOCATION })} />)}
</>
);
};