diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-28 12:47:59 +0300 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-05-29 19:42:25 +0300 |
commit | 99c4e46d1df36ed7830dfaef2e146177752f244f (patch) | |
tree | feee84162c13307998c6ab4697d923a56b44a82d /app/assets/javascripts/boards/components/modal | |
parent | ef849c6ce7165dd7a9ac10b72eebbd273b8f92e3 (diff) |
fix `no-unused-vars`
Diffstat (limited to 'app/assets/javascripts/boards/components/modal')
-rw-r--r-- | app/assets/javascripts/boards/components/modal/list.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/javascripts/boards/components/modal/list.js b/app/assets/javascripts/boards/components/modal/list.js index 6c662432037..f86896d2178 100644 --- a/app/assets/javascripts/boards/components/modal/list.js +++ b/app/assets/javascripts/boards/components/modal/list.js @@ -1,5 +1,3 @@ -/* global ListIssue */ - import Vue from 'vue'; import bp from '../../../breakpoints'; import ModalStore from '../../stores/modal_store'; @@ -56,8 +54,11 @@ gl.issueBoards.ModalList = Vue.extend({ scrollHandler() { const currentPage = Math.floor(this.issues.length / this.perPage); - if ((this.scrollTop() > this.scrollHeight() - 100) && !this.loadingNewPage - && currentPage === this.page) { + if ( + this.scrollTop() > this.scrollHeight() - 100 && + !this.loadingNewPage && + currentPage === this.page + ) { this.loadingNewPage = true; this.page += 1; } |