diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-19 20:23:56 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-31 09:47:25 +0100 |
commit | 105c80b6be3ae0bb550f455d0fcb1d4fe34462b5 (patch) | |
tree | 01e152ca5c13e8874e2bb1d3977857a841125401 /app/assets/javascripts/boards/components | |
parent | 4f341ed85b5fb37250799ec13948bbe88074d376 (diff) | |
download | gitlab-ce-105c80b6be3ae0bb550f455d0fcb1d4fe34462b5.tar.gz |
Shows count at bottom of list
Only visible when scrollable area is larger than height
Diffstat (limited to 'app/assets/javascripts/boards/components')
-rw-r--r-- | app/assets/javascripts/boards/components/board_list.js.es6 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/board_list.js.es6 b/app/assets/javascripts/boards/components/board_list.js.es6 index a6644e9eb8c..50fc11d7737 100644 --- a/app/assets/javascripts/boards/components/board_list.js.es6 +++ b/app/assets/javascripts/boards/components/board_list.js.es6 @@ -20,7 +20,8 @@ data () { return { scrollOffset: 250, - filters: Store.state.filters + filters: Store.state.filters, + showCount: false }; }, watch: { @@ -30,6 +31,15 @@ this.$els.list.scrollTop = 0; }, deep: true + }, + issues () { + this.$nextTick(() => { + if (this.scrollHeight() > this.listHeight()) { + this.showCount = true; + } else { + this.showCount = false; + } + }); } }, methods: { @@ -58,6 +68,7 @@ group: 'issues', sort: false, disabled: this.disabled, + filter: '.board-list-count', onStart: (e) => { const card = this.$refs.issue[e.oldIndex]; |