mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-11 20:01:40 +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 = {
|
const propTypes = {
|
||||||
currentViewMode: PropTypes.string,
|
currentViewMode: PropTypes.string,
|
||||||
repo: PropTypes.object.isRequired,
|
repo: PropTypes.object.isRequired,
|
||||||
|
inAllLibs: PropTypes.bool,
|
||||||
isItemFreezed: PropTypes.bool.isRequired,
|
isItemFreezed: PropTypes.bool.isRequired,
|
||||||
onFreezedItem: PropTypes.func.isRequired,
|
onFreezedItem: PropTypes.func.isRequired,
|
||||||
onUnfreezedItem: PropTypes.func.isRequired,
|
onUnfreezedItem: PropTypes.func.isRequired,
|
||||||
@ -320,7 +321,7 @@ class MylibRepoListItem extends React.Component {
|
|||||||
|
|
||||||
renderPCUI = () => {
|
renderPCUI = () => {
|
||||||
const { isStarred } = this.state;
|
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 iconUrl = Utils.getLibIconUrl(repo);
|
||||||
let iconTitle = Utils.getLibIconTitle(repo);
|
let iconTitle = Utils.getLibIconTitle(repo);
|
||||||
let repoURL = `${siteRoot}library/${repo.repo_id}/${Utils.encodePath(repo.repo_name)}/`;
|
let repoURL = `${siteRoot}library/${repo.repo_id}/${Utils.encodePath(repo.repo_name)}/`;
|
||||||
@ -371,7 +372,7 @@ class MylibRepoListItem extends React.Component {
|
|||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td>{repo.size}</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>
|
<td title={dayjs(repo.last_modified).format('dddd, MMMM D, YYYY h:mm:ss A')}>{dayjs(repo.last_modified).fromNow()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
) : (
|
) : (
|
||||||
|
@ -104,6 +104,7 @@ class MylibRepoListView extends React.Component {
|
|||||||
onMonitorRepo={this.props.onMonitorRepo}
|
onMonitorRepo={this.props.onMonitorRepo}
|
||||||
currentViewMode={this.props.currentViewMode}
|
currentViewMode={this.props.currentViewMode}
|
||||||
onContextMenu={this.onContextMenu}
|
onContextMenu={this.onContextMenu}
|
||||||
|
inAllLibs={this.props.inAllLibs}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
Loading…
Reference in New Issue
Block a user