Fixed some failing lint tests
This commit is contained in:
parent
0904e9b107
commit
8b977b295e
4 changed files with 8 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
|||
},
|
||||
addIssues() {
|
||||
const list = this.selectedList;
|
||||
const issueIds = this.selectedIssues.map(issue => issue._id);
|
||||
const issueIds = this.selectedIssues.map(issue => issue.globalId);
|
||||
|
||||
// Post the data to the backend
|
||||
this.$http.post(this.bulkUpdatePath, {
|
||||
|
|
|
@ -31,13 +31,13 @@
|
|||
},
|
||||
methods: {
|
||||
toggleIssue: ModalStore.toggleIssue.bind(ModalStore),
|
||||
listHeight () {
|
||||
listHeight() {
|
||||
return this.$refs.list.getBoundingClientRect().height;
|
||||
},
|
||||
scrollHeight () {
|
||||
scrollHeight() {
|
||||
return this.$refs.list.scrollHeight;
|
||||
},
|
||||
scrollTop () {
|
||||
scrollTop() {
|
||||
return this.$refs.list.scrollTop + this.listHeight();
|
||||
},
|
||||
showIssue(issue) {
|
||||
|
@ -70,7 +70,8 @@
|
|||
this.$refs.list.onscroll = () => {
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
class ListIssue {
|
||||
constructor (obj) {
|
||||
this._id = obj.id;
|
||||
this.globalId = obj.id;
|
||||
this.id = obj.iid;
|
||||
this.title = obj.title;
|
||||
this.confidential = obj.confidential;
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
.form-control {
|
||||
display: inline-block;
|
||||
width: 210px;
|
||||
margin-right: 10px
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue