Fixed eslint errors
This commit is contained in:
parent
619f7ec8ef
commit
b866d9f087
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable no-new */
|
||||
/* global Vue */
|
||||
/* global LabelSelect */
|
||||
/* global LabelsSelect */
|
||||
(() => {
|
||||
gl.issueBoards.ModalLabelFilter = Vue.extend({
|
||||
props: {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-new */
|
||||
/* global Vue */
|
||||
/* global MilestoneSelect */
|
||||
(() => {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* 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 {
|
||||
|
|
Loading…
Reference in New Issue