pull/1974/head
Ayrat Badykov 6 years ago
parent cf3cab61dc
commit e049fda779
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 6
      apps/block_scout_web/assets/js/lib/async_listing_load.js
  2. 4
      apps/block_scout_web/priv/gettext/default.pot
  3. 4
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -81,11 +81,11 @@ export function asyncReducer (state = asyncInitialState, action) {
loadingFirstPage: false loadingFirstPage: false
}) })
} }
case 'ITEMS_FETCHED': { case 'ITEMS_FETCHED': {
var prevPagePath = null var prevPagePath = null
if (state.pagesStack.length >= 2) { if (state.pagesStack.length >= 2) {
prevPagePath = state.pagesStack[state.pagesStack.length - 2] prevPagePath = state.pagesStack[state.pagesStack.length - 2]
} }
return Object.assign({}, state, { return Object.assign({}, state, {
@ -95,7 +95,7 @@ export function asyncReducer (state = asyncInitialState, action) {
prevPagePath: prevPagePath prevPagePath: prevPagePath
}) })
} }
case 'NAVIGATE_TO_OLDER': { case 'NAVIGATE_TO_OLDER': {
history.replaceState({}, null, state.nextPagePath) history.replaceState({}, null, state.nextPagePath)
if (state.pagesStack.length === 0) { if (state.pagesStack.length === 0) {

@ -1710,7 +1710,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:38 #: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:40
msgid "Page" msgid "Page"
msgstr "" msgstr ""
@ -1728,7 +1728,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:38 #: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:40
msgid "of" msgid "of"
msgstr "" msgstr ""

@ -1710,7 +1710,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:38 #: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:40
msgid "Page" msgid "Page"
msgstr "" msgstr ""
@ -1728,7 +1728,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:38 #: lib/block_scout_web/templates/common_components/_pagination_container.html.eex:40
msgid "of" msgid "of"
msgstr "" msgstr ""

Loading…
Cancel
Save