Commit 25c84fd6 authored by Phil Hughes's avatar Phil Hughes

Fixed issue where moving issue & then scrolling stop new page loading

parent 105c80b6
...@@ -52,7 +52,7 @@ class List { ...@@ -52,7 +52,7 @@ class List {
} }
nextPage () { nextPage () {
if (Math.floor(this.issues.length / 20) === this.page) { if (this.issuesSize > this.issues.length) {
this.page++; this.page++;
return this.getIssues(false); return this.getIssues(false);
...@@ -94,6 +94,7 @@ class List { ...@@ -94,6 +94,7 @@ class List {
} }
addIssue (issue, listFrom) { addIssue (issue, listFrom) {
if (!this.findIssue(issue.id)) {
this.issues.push(issue); this.issues.push(issue);
if (this.label) { if (this.label) {
...@@ -102,7 +103,11 @@ class List { ...@@ -102,7 +103,11 @@ class List {
if (listFrom) { if (listFrom) {
this.issuesSize++; this.issuesSize++;
gl.boardService.moveIssue(issue.id, listFrom.id, this.id); gl.boardService.moveIssue(issue.id, listFrom.id, this.id)
.then(() => {
listFrom.getIssues(false);
});
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment