Fixed eslint errors

This commit is contained in:
Phil Hughes 2017-02-02 15:12:44 +00:00
parent 619f7ec8ef
commit b866d9f087
6 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,6 @@
/* eslint-disable no-new */
/* global Vue */
/* global LabelSelect */
/* global LabelsSelect */
(() => {
gl.issueBoards.ModalLabelFilter = Vue.extend({
props: {

View File

@ -1,3 +1,4 @@
/* eslint-disable no-new */
/* global Vue */
/* global MilestoneSelect */
(() => {

View File

@ -1,3 +1,4 @@
/* eslint-disable no-new */
/* global Vue */
/* global UsersSelect */
(() => {

View File

@ -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) {

View File

@ -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');

View File

@ -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 {