1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00
This commit is contained in:
MichaelAn
2018-10-30 14:20:02 +08:00
committed by Daniel Pan
parent 0a9f965fce
commit f08a95a40f
3 changed files with 6 additions and 9 deletions

View File

@@ -159,7 +159,7 @@ class DraftReview extends React.Component {
render() {
const onResizeMove = this.state.inResizing ? this.onResizeMouseMove : null;
const draftLink = siteRoot + 'lib/' + draftOriginRepoID + '/file' + draftFilePath;
const draftLink = siteRoot + 'lib/' + draftOriginRepoID + '/file' + draftFilePath + '?mode=edit';
return(
<div className="wrapper">
<div id="header" className="header review">
@@ -172,13 +172,15 @@ class DraftReview extends React.Component {
<span className="file-name">{draftFileName}</span>
<span className="file-copywriting">{gettext('review')}</span>
</React.Fragment>
{ draftID !== 'None' && <a href={draftLink} className="draft-link">{gettext('View draft')}</a>}
{ draftID !== 'None' && <a href={draftLink} className="draft-link">{gettext('Edit draft')}</a>}
</div>
</div>
<div className="button-group">
<div className={'seafile-toggle-diff'}>
<label className="custom-switch" id="toggle-diff">
<input type="checkbox" name="option" className="custom-switch-input" onClick={this.onSwitchShowDiff}/>
<input type="checkbox" checked={this.state.isShowDiff ? 'checked' : ''}
name="option" className="custom-switch-input"
onClick={this.onSwitchShowDiff}/>
<span className="custom-switch-indicator"></span>
</label>
<Tooltip placement="bottom" isOpen={this.state.showDiffTip}