summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-09-13 11:27:16 +0100
committerPhil Hughes <me@iamphill.com>2016-09-13 11:27:16 +0100
commit3e855b247f7a1df63130d6ac9a005a8cf6d5c135 (patch)
tree6e9725994e115d118e80a7ed8f9d631edb0a1c4f
parentf7be904afa2edf731e87f1f60918c0d82234eff4 (diff)
downloadgitlab-ce-issue-boards-large-height-load.tar.gz
Fixed issue boards loading issues on large screensissue-boards-large-height-load
Closes #22092
-rw-r--r--CHANGELOG1
-rw-r--r--app/assets/javascripts/boards/components/board_list.js.es65
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index dc8dbb6e166..7f6d6dba1c0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -58,6 +58,7 @@ v 8.12.0 (unreleased)
- Use 'git update-ref' for safer web commits !6130
- Sort pipelines requested through the API
- Automatically expand hidden discussions when accessed by a permalink !5585 (Mike Greiling)
+ - Fix issue boards loading on large screens
- Change pipeline duration to be jobs running time instead of simple wall time from start to end !6084
- Show queued time when showing a pipeline !6084
- Remove unused mixins (ClemMakesApps)
diff --git a/app/assets/javascripts/boards/components/board_list.js.es6 b/app/assets/javascripts/boards/components/board_list.js.es6
index 50fc11d7737..474805c1437 100644
--- a/app/assets/javascripts/boards/components/board_list.js.es6
+++ b/app/assets/javascripts/boards/components/board_list.js.es6
@@ -34,6 +34,11 @@
},
issues () {
this.$nextTick(() => {
+ if (this.scrollHeight() <= this.listHeight() && this.list.issuesSize > this.list.issues.length) {
+ this.list.page++;
+ this.list.getIssues(false);
+ }
+
if (this.scrollHeight() > this.listHeight()) {
this.showCount = true;
} else {