mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
fix draft publish
This commit is contained in:
@@ -786,14 +786,16 @@ class Draft extends React.Component {
|
|||||||
<span className="file-name">{draftFileName}</span>
|
<span className="file-name">{draftFileName}</span>
|
||||||
<span className="mx-2 file-review">{gettext('Review')}</span>
|
<span className="mx-2 file-review">{gettext('Review')}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="last-modification">
|
{(!freezePublish && this.state.draftInfo.mtime) &&
|
||||||
<a href={url}>{this.state.draftInfo.last_modifier_name}</a><span className="mx-1">{time}</span>
|
<div className="last-modification">
|
||||||
</div>
|
<a href={url}>{this.state.draftInfo.last_modifier_name}</a><span className="mx-1">{time}</span>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="button-group">
|
<div className="button-group">
|
||||||
{this.renderDiffButton()}
|
{this.renderDiffButton()}
|
||||||
{draftFileExists &&
|
{(draftFileExists && !freezePublish) &&
|
||||||
<a href={draftLink} className="mx-xl-1"><Button color="secondary">{gettext('Edit Draft')}</Button></a>
|
<a href={draftLink} className="mx-xl-1"><Button color="secondary">{gettext('Edit Draft')}</Button></a>
|
||||||
}
|
}
|
||||||
{canPublish &&
|
{canPublish &&
|
||||||
|
Reference in New Issue
Block a user