(fix) little refactoring

pull/1928/head
Gabriel Rodriguez Alsina 6 years ago
parent de46601a55
commit 101fdc3f61
  1. 6
      apps/block_scout_web/assets/js/lib/async_listing_load.js

@ -145,12 +145,10 @@ export const elements = {
},
'[data-async-listing] [data-next-page-button]': {
render ($el, state) {
if ((state.requestError) || (!state.nextPagePath) || (state.loading)) {
$el.attr('disabled', 'disabled')
return
if (state.requestError || !state.nextPagePath || state.loading) {
return $el.attr('disabled', 'disabled')
}
// $el.show()
$el.attr('disabled', false)
$el.attr('href', state.nextPagePath)
}

Loading…
Cancel
Save