Commit 8b977b29 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Fixed some failing lint tests

parent 0904e9b1
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
}, },
addIssues() { addIssues() {
const list = this.selectedList; 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 // Post the data to the backend
this.$http.post(this.bulkUpdatePath, { this.$http.post(this.bulkUpdatePath, {
......
...@@ -31,13 +31,13 @@ ...@@ -31,13 +31,13 @@
}, },
methods: { methods: {
toggleIssue: ModalStore.toggleIssue.bind(ModalStore), toggleIssue: ModalStore.toggleIssue.bind(ModalStore),
listHeight () { listHeight() {
return this.$refs.list.getBoundingClientRect().height; return this.$refs.list.getBoundingClientRect().height;
}, },
scrollHeight () { scrollHeight() {
return this.$refs.list.scrollHeight; return this.$refs.list.scrollHeight;
}, },
scrollTop () { scrollTop() {
return this.$refs.list.scrollTop + this.listHeight(); return this.$refs.list.scrollTop + this.listHeight();
}, },
showIssue(issue) { showIssue(issue) {
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
this.$refs.list.onscroll = () => { this.$refs.list.onscroll = () => {
const currentPage = Math.floor(this.issues.length / this.perPage); 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.loadingNewPage = true;
this.page += 1; this.page += 1;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
class ListIssue { class ListIssue {
constructor (obj) { constructor (obj) {
this._id = obj.id; this.globalId = obj.id;
this.id = obj.iid; this.id = obj.iid;
this.title = obj.title; this.title = obj.title;
this.confidential = obj.confidential; this.confidential = obj.confidential;
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
.form-control { .form-control {
display: inline-block; display: inline-block;
width: 210px; width: 210px;
margin-right: 10px margin-right: 10px;
} }
} }
......
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