Просмотр исходного кода

Merge pull request #2737 from weseek/imprv/transplant-gw3702

Imprv/transplant gw3702
Yuki Takei 5 лет назад
Родитель
Сommit
ea2cf68d88
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      src/client/js/components/PageTimeline.jsx

+ 1 - 8
src/client/js/components/PageTimeline.jsx

@@ -23,7 +23,7 @@ class PageTimeline extends React.Component {
       activePage: 1,
       activePage: 1,
       totalPages: 0,
       totalPages: 0,
       limit: appContainer.getConfig().recentCreatedLimit,
       limit: appContainer.getConfig().recentCreatedLimit,
-      isEnabled: appContainer.getConfig().isEnabledTimeline,
+
       // TODO: remove after when timeline is implemented with React and inject data with props
       // TODO: remove after when timeline is implemented with React and inject data with props
       pages: this.props.pages,
       pages: this.props.pages,
     };
     };
@@ -51,9 +51,6 @@ class PageTimeline extends React.Component {
   }
   }
 
 
   componentWillMount() {
   componentWillMount() {
-    if (!this.state.isEnabled) {
-      return;
-    }
     const { appContainer } = this.props;
     const { appContainer } = this.props;
 
 
     // initialize GrowiRenderer
     // initialize GrowiRenderer
@@ -62,10 +59,6 @@ class PageTimeline extends React.Component {
   }
   }
 
 
   render() {
   render() {
-    if (!this.state.isEnabled) {
-      return <React.Fragment></React.Fragment>;
-    }
-
     const { pages } = this.state;
     const { pages } = this.state;
 
 
     if (pages == null) {
     if (pages == null) {