Commit e51f46c9 authored by Clement Ho's avatar Clement Ho

[skip ci] use refs

parent 39e38a58
......@@ -64,7 +64,7 @@ require('./sidebar/remove_issue');
},
assignSelf () {
// Notify gl dropdown that we are now assigning to current user
this.$el.querySelector('.block.assignee').dispatchEvent(new Event('assignYourself'));
this.$refs.assigneeBlock.dispatchEvent(new Event('assignYourself'));
this.addUser(this.currentUser.id);
this.saveUsers();
......
.block.assignee
.block.assignee{ ref: "assigneeBlock" }
%template{ "v-if" => "issue.assignees"}
%assignee-title{ ":number-of-assignees" => "issue.selectedAssigneeIds.length",
":loading" => "loadingAssignees",
......
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