Commit b866d9f0 authored by Phil Hughes's avatar Phil Hughes

Fixed eslint errors

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