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

add coment and commentout MyDraft from app.jsx

zahmis 5 лет назад
Родитель
Сommit
d9ee706e41

+ 2 - 2
src/client/js/app.jsx

@@ -24,7 +24,7 @@ import PageAttachment from './components/PageAttachment';
 import PageStatusAlert from './components/PageStatusAlert';
 import RecentCreated from './components/RecentCreated/RecentCreated';
 import MyBookmarkList from './components/MyBookmarkList/MyBookmarkList';
-import MyDraftList from './components/MyDraftList/MyDraftList';
+// import MyDraftList from './components/MyDraftList/MyDraftList';
 import SeenUserList from './components/User/SeenUserList';
 import LikerList from './components/User/LikerList';
 import TableOfContents from './components/TableOfContents';
@@ -95,7 +95,7 @@ if (pageContainer.state.pageId != null) {
 
     'user-bookmark-list': <MyBookmarkList />,
     'user-created-list': <RecentCreated />,
-    'user-draft-list': <MyDraftList />,
+    // 'user-draft-list': <MyDraftList />,
   });
 }
 if (pageContainer.state.path != null) {

+ 0 - 1
src/client/js/components/MyBookmarkList/MyBookmarkList.jsx

@@ -41,7 +41,6 @@ class MyBookmarkList extends React.Component {
     const { appContainer } = this.props;
 
     const userId = appContainer.currentUserId;
-    /* TODO #1 change variable name in models/config.js */
     /* TODO #2 change variable name in database keys */
     /* TODO #3 write migration */
     const limit = appContainer.getConfig().pageListLimitForUserPage;

+ 1 - 1
src/client/js/components/PageAttachment.jsx

@@ -12,7 +12,7 @@ class PageAttachment extends React.Component {
 
   constructor(props) {
     super(props);
-
+    // TODO add paging size (limit) for modal
     this.state = {
       attachments: [],
       inUse: {},

+ 1 - 1
src/client/js/components/PageHistory.jsx

@@ -11,7 +11,7 @@ class PageHistory extends React.Component {
 
   constructor(props) {
     super(props);
-
+    // TODO add paging size (limit) for modal
     this.state = {
       isLoaded: false,
       isLoading: false,

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

@@ -15,7 +15,7 @@ class PageTimeline extends React.Component {
     super(props);
 
     const { appContainer } = this.props;
-
+    // TODO add paging size (limit) for modal
     this.state = {
       isEnabled: appContainer.getConfig().isEnabledTimeline,
       isInitialized: false,

+ 2 - 2
src/server/views/widget/user_page_content.html

@@ -13,12 +13,12 @@
       </a>
     </li>
     {% if user._id.toString() == pageUser._id.toString() %}
-    <li class="nav-item">
+    <!-- <li class="nav-item">
       <a class="nav-link" href="#user-draft-list" role="tab" data-toggle="tab">
         <i class="icon-docs"></i>
         <span class="d-none d-sm-inline">My Drafts</span>
       </a>
-    </li>
+    </li> -->
     <li class="nav-item">
       <a class="nav-link" href="/me" role="tab">
         <i class="icon-wrench"></i>