1
0
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:
Michael An 2025-01-06 17:19:03 +08:00 committed by GitHub
parent b4cda98556
commit b848703ada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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>
) : (

View File

@ -104,6 +104,7 @@ class MylibRepoListView extends React.Component {
onMonitorRepo={this.props.onMonitorRepo}
currentViewMode={this.props.currentViewMode}
onContextMenu={this.onContextMenu}
inAllLibs={this.props.inAllLibs}
/>
);
})}