mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 15:23:05 +00:00
fix Storage Backend style (#7319)
This commit is contained in:
parent
b4cda98556
commit
b848703ada
@ -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 {
|
||||
)}
|
||||
</td>
|
||||
<td>{repo.size}</td>
|
||||
{storages.length > 0 && <td>{repo.storage_name}</td>}
|
||||
{(storages.length > 0 && !inAllLibs) && <td>{repo.storage_name}</td>}
|
||||
<td title={dayjs(repo.last_modified).format('dddd, MMMM D, YYYY h:mm:ss A')}>{dayjs(repo.last_modified).fromNow()}</td>
|
||||
</tr>
|
||||
) : (
|
||||
|
@ -104,6 +104,7 @@ class MylibRepoListView extends React.Component {
|
||||
onMonitorRepo={this.props.onMonitorRepo}
|
||||
currentViewMode={this.props.currentViewMode}
|
||||
onContextMenu={this.onContextMenu}
|
||||
inAllLibs={this.props.inAllLibs}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user