ryuichi-e 5 лет назад
Родитель
Сommit
a88bbc76bc

+ 3 - 5
src/client/js/components/MyBookmarkList/MyBookmarkList.jsx

@@ -13,7 +13,7 @@ import PaginationWrapper from '../PaginationWrapper';
 
 
 import Page from '../PageList/Page';
 import Page from '../PageList/Page';
 
 
-const logger = loggerFactory('growi:History');
+const logger = loggerFactory('growi:MyBookmarkList');
 class MyBookmarkList extends React.Component {
 class MyBookmarkList extends React.Component {
 
 
   constructor(props) {
   constructor(props) {
@@ -43,8 +43,7 @@ class MyBookmarkList extends React.Component {
 
 
     const userId = appContainer.currentUserId;
     const userId = appContainer.currentUserId;
     /* TODO GW-3255 get config from customize settings */
     /* TODO GW-3255 get config from customize settings */
-    /* const limit = appContainer.getConfig().recentCreatedLimit; */
-    const limit = 10;
+    const limit = appContainer.getConfig().recentCreatedLimit;
     const offset = (selectPageNumber - 1) * limit;
     const offset = (selectPageNumber - 1) * limit;
 
 
 
 
@@ -65,13 +64,12 @@ class MyBookmarkList extends React.Component {
           pagingLimit: limit,
           pagingLimit: limit,
         });
         });
       }); */
       }); */
-    /*  */
     try {
     try {
       await pageContainer.retrieveMyBookmarkList(pageId, userId, limit, offset);
       await pageContainer.retrieveMyBookmarkList(pageId, userId, limit, offset);
     }
     }
     catch (error) {
     catch (error) {
       logger.error('failed to fetch data', error);
       logger.error('failed to fetch data', error);
-      toastError(error, 'Error occurred in updating History');
+      toastError(error, 'Error occurred in bookmark list');
     }
     }
   }
   }
 
 

+ 1 - 0
src/server/views/widget/user_page_content.html

@@ -31,6 +31,7 @@
   <div class="user-page-content-tab tab-content">
   <div class="user-page-content-tab tab-content">
 
 
     <div class="tab-pane user-bookmark-list page-list active" id="user-bookmark-list">
     <div class="tab-pane user-bookmark-list page-list active" id="user-bookmark-list">
+      <!-- TODO This block for compareation, it will delete later. -->
       {# {% if bookmarkList.length == 0 %}
       {# {% if bookmarkList.length == 0 %}
         No bookmarks yet.
         No bookmarks yet.
       {% else %} #}
       {% else %} #}