1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

fix draft publish

This commit is contained in:
Michael An
2019-04-17 14:52:18 +08:00
parent 6d0306c293
commit 5c72ba874f

View File

@@ -786,14 +786,16 @@ class Draft extends React.Component {
<span className="file-name">{draftFileName}</span>
<span className="mx-2 file-review">{gettext('Review')}</span>
</div>
<div className="last-modification">
<a href={url}>{this.state.draftInfo.last_modifier_name}</a><span className="mx-1">{time}</span>
</div>
{(!freezePublish && this.state.draftInfo.mtime) &&
<div className="last-modification">
<a href={url}>{this.state.draftInfo.last_modifier_name}</a><span className="mx-1">{time}</span>
</div>
}
</div>
</div>
<div className="button-group">
{this.renderDiffButton()}
{draftFileExists &&
{(draftFileExists && !freezePublish) &&
<a href={draftLink} className="mx-xl-1"><Button color="secondary">{gettext('Edit Draft')}</Button></a>
}
{canPublish &&