mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
@@ -5,7 +5,7 @@ import { Button } from 'reactstrap';
|
||||
/* eslint-disable */
|
||||
import Prism from 'prismjs';
|
||||
/* eslint-enable */
|
||||
import { DiffViewer, serialize } from '@seafile/seafile-editor';
|
||||
import { ReactEditor, DiffViewer, serialize } from '@seafile/seafile-editor';
|
||||
import { siteRoot, gettext, draftOriginFilePath, draftFilePath, author, authorAvatar, originFileExists, draftFileExists, draftID, draftFileName, draftRepoID, draftStatus, draftPublishVersion, originFileVersion, filePermission, serviceURL, mediaUrl } from './utils/constants';
|
||||
import { seafileAPI } from './utils/seafile-api';
|
||||
import axios from 'axios';
|
||||
@@ -14,7 +14,6 @@ import ReviewComments from './components/review-list-view/review-comments';
|
||||
import ReviewCommentDialog from './components/review-list-view/review-comment-dialog.js';
|
||||
import { Tooltip } from 'reactstrap';
|
||||
import AddReviewerDialog from './components/dialog/add-reviewer-dialog.js';
|
||||
import { ReactEditor } from '@seafile/slate-react';
|
||||
import { Nav, NavItem, NavLink, TabContent, TabPane } from 'reactstrap';
|
||||
import classnames from 'classnames';
|
||||
import HistoryList from './pages/review/history-list';
|
||||
|
@@ -241,11 +241,9 @@ class Item extends Component {
|
||||
</td>
|
||||
<td>{item.shared_by}</td>
|
||||
<td title={moment(item.last_modified).format('llll')}>{moment(item.ctime).fromNow()}</td>
|
||||
<td>
|
||||
{item.is_dir ? "" : <a href="#" className={`action-icon sf2-icon-download ${isOpIconShown ? '' : 'invisible'}`} title={gettext('Download')} onClick={this.downloadFile}></a>}
|
||||
<td>{item.is_dir ? "" : <a href="#" className={`action-icon sf2-icon-download ${isOpIconShown ? '' : 'invisible'}`} title={gettext('Download')} onClick={this.downloadFile}></a>}
|
||||
</td>
|
||||
<td>
|
||||
{this.props.path ? "" : <a href="#" className={`action-icon sf2-icon-x3 ${isOpIconShown ? '' : 'invisible'}`} title={gettext('Leave Share')} onClick={this.leaveShare}></a>}
|
||||
<td>{this.props.path ? "" : <a href="#" className={`action-icon sf2-icon-x3 ${isOpIconShown ? '' : 'invisible'}`} title={gettext('Leave Share')} onClick={this.leaveShare}></a>}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
@@ -248,10 +248,6 @@ class RepoItem extends React.Component {
|
||||
this.props.deleteRepoItem(this.props.repo);
|
||||
}
|
||||
|
||||
toggleTransfer = () => {
|
||||
this.props.transferRepoItem(this.props.repo);
|
||||
}
|
||||
|
||||
renderLibIcon = (repo) => {
|
||||
let href;
|
||||
let iconTitle;
|
||||
|
Reference in New Issue
Block a user