mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
optimized getIcon interface (#2904)
* optimized getIcon interface * optimzied get lib-icon code * repair share-repo bug
This commit is contained in:
@@ -107,12 +107,7 @@ class Item extends Component {
|
||||
|
||||
getUploadParams = () => {
|
||||
let item = this.props.item;
|
||||
let icon_size = Utils.isHiDPI() ? 48 : 24;
|
||||
let iconUrl = Utils.getFolderIconUrl({
|
||||
is_readonly: false,
|
||||
size: icon_size
|
||||
});
|
||||
|
||||
let iconUrl = Utils.getFolderIconUrl(false);
|
||||
let uploadUrl = `${siteRoot}library/${item.repo_id}/${item.repo_name}${Utils.encodePath(item.path)}`;
|
||||
|
||||
return { iconUrl, uploadUrl };
|
||||
|
Reference in New Issue
Block a user