Commit b866d9f0 authored by Phil Hughes's avatar Phil Hughes

Fixed eslint errors

parent 619f7ec8
/* eslint-disable no-new */
/* global Vue */
/* global LabelSelect */
/* global LabelsSelect */
(() => {
gl.issueBoards.ModalLabelFilter = Vue.extend({
props: {
......
/* eslint-disable no-new */
/* global Vue */
/* global MilestoneSelect */
(() => {
......
/* eslint-disable no-new */
/* global Vue */
/* global UsersSelect */
(() => {
......
......@@ -67,22 +67,22 @@
this.loadIssues(true);
},
deep: true,
}
},
},
methods: {
searchOperation: _.debounce(function searchOperationDebounce() {
this.loadIssues(true);
}, 500),
loadIssues(clearIssues = false) {
if (!this.showAddIssuesModal) return;
if (!this.showAddIssuesModal) return false;
const data = Object.assign({}, this.filter, {
const queryData = Object.assign({}, this.filter, {
search: this.searchTerm,
page: this.page,
per: this.perPage,
});
return gl.boardService.getBacklog(data).then((res) => {
return gl.boardService.getBacklog(queryData).then((res) => {
const data = res.json();
if (clearIssues) {
......
......@@ -6,7 +6,7 @@
(function() {
this.MilestoneSelect = (function() {
function MilestoneSelect(currentProject, els) {
var _this;
var _this, $els;
if (currentProject != null) {
_this = this;
this.currentProject = JSON.parse(currentProject);
......@@ -18,7 +18,7 @@
$els = $('.js-label-select');
}
$('.js-milestone-select').each(function(i, dropdown) {
$els.each(function(i, dropdown) {
var $block, $dropdown, $loading, $selectbox, $sidebarCollapsedValue, $value, abilityName, collapsedSidebarLabelTemplate, defaultLabel, issuableId, issueUpdateURL, milestoneLinkNoneTemplate, milestoneLinkTemplate, milestonesUrl, projectId, selectedMilestone, showAny, showNo, showUpcoming, useId, showMenuAbove;
$dropdown = $(dropdown);
projectId = $dropdown.data('project-id');
......
......@@ -392,7 +392,8 @@
&.add-issues-empty-state-filter {
-webkit-flex-direction: column;
flex-direction: column;
margin-top: 50px;
-webkit-justify-content: center;
justify-content: center;
}
> .row {
......
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