Commit 4e0ab76f authored by Clement Ho's avatar Clement Ho

[skip ci] remove unnecessary vue reference in user_select

parent b7115810
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* 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() {
...@@ -100,19 +99,7 @@ import eventHub from './sidebar/event_hub'; ...@@ -100,19 +99,7 @@ import eventHub from './sidebar/event_hub';
$block.on('click', '.js-assign-yourself', function(e) { $block.on('click', '.js-assign-yourself', function(e) {
e.preventDefault(); e.preventDefault();
return assignTo(_this.currentUser.id);
if ($dropdown.hasClass('js-issue-board-sidebar')) {
Vue.set(gl.issueBoards.BoardsStore.detail.issue, 'assignee', new ListUser({
id: _this.currentUser.id,
username: _this.currentUser.username,
name: _this.currentUser.name,
avatar_url: _this.currentUser.avatar_url
}));
updateIssueBoardsIssue();
} else {
return assignTo(_this.currentUser.id);
}
}); });
assignTo = function(selected) { assignTo = function(selected) {
var data; var data;
...@@ -289,7 +276,6 @@ import eventHub from './sidebar/event_hub'; ...@@ -289,7 +276,6 @@ import eventHub from './sidebar/event_hub';
return $value.css('display', ''); return $value.css('display', '');
}, },
multiSelect: $dropdown.hasClass('js-multiselect'), multiSelect: $dropdown.hasClass('js-multiselect'),
vue: false,
clicked: function(options) { clicked: function(options) {
const { $el, e, isMarking } = options; const { $el, e, isMarking } = options;
const user = options.selectedObj; const user = options.selectedObj;
......
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