prevent pagination during the loadInitialData
parent
f58dc55bbc
commit
abf48bd879
|
@ -63,7 +63,8 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
bindMethods(@)
|
||||
|
||||
@.page = 1
|
||||
@.disablePagination = true
|
||||
@.disablePagination = false
|
||||
@.firstLoadComplete = false
|
||||
@scope.userstories = []
|
||||
|
||||
@scope.sectionName = @translate.instant("BACKLOG.SECTION_NAME")
|
||||
|
@ -77,7 +78,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
|
||||
# On Success
|
||||
promise.then =>
|
||||
@.disablePagination = false
|
||||
@.firstLoadComplete = true
|
||||
|
||||
title = @translate.instant("BACKLOG.PAGE_TITLE", {projectName: @scope.project.name})
|
||||
description = @translate.instant("BACKLOG.PAGE_DESCRIPTION", {
|
||||
|
|
|
@ -12,7 +12,7 @@ div.backlog-table-body(
|
|||
tg-backlog-sortable,
|
||||
ng-class="{'show-tags': ctrl.showTags, 'active-filters': ctrl.activeFilters}"
|
||||
infinite-scroll="ctrl.loadUserstories()"
|
||||
infinite-scroll-disabled="ctrl.disablePagination"
|
||||
infinite-scroll-disabled="ctrl.disablePagination || !ctrl.firstLoadComplete"
|
||||
infinite-scroll-immediate-check='false'
|
||||
)
|
||||
include ../components/backlog-row
|
||||
|
|
Loading…
Reference in New Issue