Commit 6ead98de authored by Clement Ho's avatar Clement Ho

[skip ci] fix eslint

parent bd6e14d1
......@@ -18,7 +18,7 @@ export default {
},
components: {
'assignee-title': AssigneeTitle,
'assignees': Assignees,
assignees: Assignees,
},
computed: {
numberOfAssignees() {
......@@ -35,8 +35,10 @@ export default {
},
saveUsers() {
this.loading = true;
this.mediator.saveSelectedUsers(this.field).then(() => this.loading = false);
}
this.mediator.saveSelectedUsers(this.field).then(() => {
this.loading = false;
});
},
},
created() {
// Get events from glDropdown
......
import '~/smart_interval';
import timeTracker from './time_tracker';
import eventHub from '../../event_hub';
import Store from '../../stores/sidebar_store';
import Mediator from '../../sidebar_mediator';
......
/* global Flash */
import Service from './services/sidebar_service';
import Store from './stores/sidebar_store';
......@@ -12,8 +14,8 @@ export default class SidebarMediator {
return SidebarMediator.singleton;
}
assignYourself(field) {
this.store.addUserId(store.currentUserId);
assignYourself() {
this.store.addUserId(this.store.currentUserId);
}
saveSelectedUsers(field) {
......
......@@ -46,4 +46,4 @@ export default class SidebarStore {
removeAllUserIds() {
this.selectedUserIds = [];
}
};
}
......@@ -2,6 +2,7 @@
/* global Issuable */
/* global ListUser */
import Vue from 'vue';
import eventHub from './sidebar/event_hub';
(function() {
......@@ -163,7 +164,13 @@ import eventHub from './sidebar/event_hub';
}.bind(this));
},
processData: function(term, users, callback) {
var anyUser, index, j, len, name, obj, showDivider;
let anyUser;
let index;
let j;
let len;
let name;
let obj;
let showDivider;
if (term.length === 0) {
showDivider = 0;
if (firstUser) {
......
......@@ -2,7 +2,7 @@
import Vue from 'vue';
import '~/issuable/components/time_tracking/time_tracker';
import '~/sidebar/components/time_tracking/time_tracker';
function initTimeTrackingComponent(opts) {
setFixtures(`
......
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