diff options
Diffstat (limited to 'app/assets/javascripts/boards/components/modal/index.js.es6')
-rw-r--r-- | app/assets/javascripts/boards/components/modal/index.js.es6 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/modal/index.js.es6 b/app/assets/javascripts/boards/components/modal/index.js.es6 index 9cab701bb5d..eedfd826787 100644 --- a/app/assets/javascripts/boards/components/modal/index.js.es6 +++ b/app/assets/javascripts/boards/components/modal/index.js.es6 @@ -15,6 +15,9 @@ return ModalStore.store; }, watch: { + page() { + this.loadIssues(); + }, searchTerm() { this.searchOperation(); }, @@ -34,15 +37,17 @@ }, methods: { searchOperation: _.debounce(function searchOperationDebounce() { + this.issues = []; this.loadIssues(); }, 500), loadIssues() { return gl.boardService.getBacklog({ search: this.searchTerm, + page: this.page, + per: this.perPage, }).then((res) => { const data = res.json(); - this.issues = []; data.forEach((issueObj) => { const issue = new ListIssue(issueObj); const foundSelectedIssue = ModalStore.findSelectedIssue(issue); @@ -50,6 +55,8 @@ this.issues.push(issue); }); + + this.loadingNewPage = false; }); }, }, |