Преглед изворни кода

added handle page function

ryuichi-e пре 5 година
родитељ
комит
40d0acd38a
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      src/client/js/components/Admin/Security/ShareLinkSetting.jsx

+ 9 - 0
src/client/js/components/Admin/Security/ShareLinkSetting.jsx

@@ -26,6 +26,15 @@ class ShareLinkSetting extends React.Component {
     this.handlePage(1);
     this.handlePage(1);
   }
   }
 
 
+  async handlePage(page) {
+    try {
+      await this.props.adminGeneralSecurityContainer.retrieveShareLinksByPagingNum(page);
+    }
+    catch (err) {
+      toastError(err);
+    }
+  }
+
 
 
   async deleteLinkById() {
   async deleteLinkById() {
     const { t, adminGeneralSecurityContainer } = this.props;
     const { t, adminGeneralSecurityContainer } = this.props;