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