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

[skip ci] fix eslint

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