Browse Source

fixed status of revision + added shouldScrollToBottom to Timeline

Skylsmoi 5 years ago
parent
commit
ba5df2c971
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/container/HtmlDocument.jsx

+ 3 - 1
src/container/HtmlDocument.jsx View File

@@ -230,7 +230,8 @@ class HtmlDocument extends React.Component {
230 230
         ...prev.content,
231 231
         label: revision.label,
232 232
         raw_content: revision.raw_content,
233
-        number: revision.number
233
+        number: revision.number,
234
+        status: revision.status
234 235
       },
235 236
       mode: MODE.REVISION
236 237
     }))
@@ -314,6 +315,7 @@ class HtmlDocument extends React.Component {
314 315
             onClickValidateNewCommentBtn={this.handleClickValidateNewCommentBtn}
315 316
             onClickWysiwygBtn={this.handleToggleWysiwyg}
316 317
             onClickRevisionBtn={this.handleClickShowRevision}
318
+            shouldScrollToBottom={mode !== MODE.REVISION}
317 319
           />
318 320
         </PopinFixedContent>
319 321
       </PopinFixed>