BigW Consortium Gitlab

Commit 8b977b29 by Phil Hughes Committed by Fatih Acet

Fixed some failing lint tests

parent 0904e9b1
......@@ -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;
}
}
......
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