Explorar el Código

fixed status of revision + added shouldScrollToBottom to Timeline

Skylsmoi hace 6 años
padre
commit
ba5df2c971
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/container/HtmlDocument.jsx

+ 3 - 1
src/container/HtmlDocument.jsx Ver fichero

@@ -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>