diff --git a/frontend/src/pages/my-libs/mylib-repo-list-item.js b/frontend/src/pages/my-libs/mylib-repo-list-item.js index f1d28cc667..a931b18ff5 100644 --- a/frontend/src/pages/my-libs/mylib-repo-list-item.js +++ b/frontend/src/pages/my-libs/mylib-repo-list-item.js @@ -28,6 +28,7 @@ import { userAPI } from '../../utils/user-api'; const propTypes = { currentViewMode: PropTypes.string, repo: PropTypes.object.isRequired, + inAllLibs: PropTypes.bool, isItemFreezed: PropTypes.bool.isRequired, onFreezedItem: PropTypes.func.isRequired, onUnfreezedItem: PropTypes.func.isRequired, @@ -320,7 +321,7 @@ class MylibRepoListItem extends React.Component { renderPCUI = () => { const { isStarred } = this.state; - const { repo, currentViewMode = LIST_MODE } = this.props; + const { repo, currentViewMode = LIST_MODE, inAllLibs } = this.props; let iconUrl = Utils.getLibIconUrl(repo); let iconTitle = Utils.getLibIconTitle(repo); let repoURL = `${siteRoot}library/${repo.repo_id}/${Utils.encodePath(repo.repo_name)}/`; @@ -371,7 +372,7 @@ class MylibRepoListItem extends React.Component { )} {repo.size} - {storages.length > 0 && {repo.storage_name}} + {(storages.length > 0 && !inAllLibs) && {repo.storage_name}} {dayjs(repo.last_modified).fromNow()} ) : ( diff --git a/frontend/src/pages/my-libs/mylib-repo-list-view.js b/frontend/src/pages/my-libs/mylib-repo-list-view.js index b70d3c8ec3..27266de4cc 100644 --- a/frontend/src/pages/my-libs/mylib-repo-list-view.js +++ b/frontend/src/pages/my-libs/mylib-repo-list-view.js @@ -104,6 +104,7 @@ class MylibRepoListView extends React.Component { onMonitorRepo={this.props.onMonitorRepo} currentViewMode={this.props.currentViewMode} onContextMenu={this.onContextMenu} + inAllLibs={this.props.inAllLibs} /> ); })}