diff --git a/products/ASC.Files/Client/src/components/pages/Home/locales/en/translation.json b/products/ASC.Files/Client/src/components/pages/Home/locales/en/translation.json index fea1841023..76af63547d 100644 --- a/products/ASC.Files/Client/src/components/pages/Home/locales/en/translation.json +++ b/products/ASC.Files/Client/src/components/pages/Home/locales/en/translation.json @@ -32,5 +32,9 @@ "BySize": "Size", "ByAuthor": "Author", "DirectionAscLabel":"A-Z", - "DirectionDescLabel":"Z-A" + "DirectionDescLabel":"Z-A", + "CountPerPage": "{{count}} per page", + "PageOfTotalPage": "{{page}} of {{totalPage}}", + "PreviousPage": "Previous", + "NextPage": "Next" } \ No newline at end of file diff --git a/products/ASC.Files/Client/src/components/pages/Home/locales/ru/translation.json b/products/ASC.Files/Client/src/components/pages/Home/locales/ru/translation.json index 5ceddbac1a..d5abcc916f 100644 --- a/products/ASC.Files/Client/src/components/pages/Home/locales/ru/translation.json +++ b/products/ASC.Files/Client/src/components/pages/Home/locales/ru/translation.json @@ -32,5 +32,9 @@ "BySize": "Размер", "ByAuthor": "Автор", "DirectionAscLabel":"А-Я", - "DirectionDescLabel":"Я-А" + "DirectionDescLabel":"Я-А", + "CountPerPage": "{{count}} на странице", + "PageOfTotalPage": "{{page}} из {{totalPage}}", + "PreviousPage": "Предыдущая", + "NextPage": "Следующая" } \ No newline at end of file diff --git a/products/ASC.Files/Client/src/store/files/actions.js b/products/ASC.Files/Client/src/store/files/actions.js index 9021c2fcf2..d9efce95fd 100644 --- a/products/ASC.Files/Client/src/store/files/actions.js +++ b/products/ASC.Files/Client/src/store/files/actions.js @@ -117,8 +117,10 @@ export function fetchFiles(filter) { //TODO: add real API request, change algorithm return (dispatch, getState) => { let filterData = filter && filter.clone(); - dispatch(setFilesFilter(filterData)); const { files: filesStore } = getState(); + const totalFiles = filesStore.files.length; + filterData.total = totalFiles; + dispatch(setFilesFilter(filterData)); const currentFilterType = filter.filterType; const fileType = getFileTypeByFilterType(currentFilterType); const selectedFolderId = filesStore.selectedFolder.id;